Skip to content

spo listitem isrecord

Checks if the specified list item is a record

Usage

m365 spo listitem isrecord [options]

Options

-u, --webUrl <webUrl>
The URL of the site where the list is located
-i, --id <id>
The ID of the list item to check if it is a record
-l, --listId [listId]
ID of the list where the item should be added. Specify either listTitle, listId or listUrl
-t, --listTitle [listTitle]
Title of the list where the item should be added. Specify either listTitle, listId or listUrl
--listUrl [listUrl]
Server- or site-relative URL of the list. Specify either listTitle, listId or listUrl
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is full.
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Check whether the document with id 1 in list with title Documents located in site https://contoso.sharepoint.com/sites/project-x is a record

m365 spo listitem isrecord --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'Documents' --id 1

Check whether the document with id 1 in list with id 0cd891ef-afce-4e55-b836-fce03286cccf located in site https://contoso.sharepoint.com/sites/project-x is a record

m365 spo listitem isrecord --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id 1

Check whether a document with a specific id in a list retrieved by server-relative URL in a specific site is a record

m365 spo listitem isrecord --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/documents --id 1

Response

false
false
false