Skip to content

spo listitem isrecord

Checks if the specified list item is a record

Usage

spo listitem isrecord [options]

Options

Option Description
--help output usage information
-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] The ID of the list where the item is located. Specify listId or listTitle but not both
-t, --listTitle [listTitle] The title of the list where the item is located. Specify listId or listTitle but not both
--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

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

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