spo listitem record undeclare¶
Undeclares list item as a record
Usage¶
m365 spo listitem record undeclare [options]
Options¶
-u, --webUrl <webUrl>
- The URL of the site where the list is located
-i, --id <id>
- ID of the list item to be undeclared as a record.
-l, --listId [listId]
- The ID of the list where the item is located. Specify
listId
orlistTitle
but not both -t, --listTitle [listTitle]
- The title of the list where the item is located. Specify
listId
orlistTitle
but not both -h, --help
- output usage information
--query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Undeclare the list item as a record with ID 1 from list with ID 0cd891ef-afce-4e55-b836-fce03286cccf located in site _https://contoso.sharepoint.com/sites/project-x
spo listitem record undeclare --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id 1
Undeclare the list item as a record with ID 1 from list with title List 1 located in site https://contoso.sharepoint.com/sites/project-x
m365 spo listitem record undeclare --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --id 1