spo list defaultvalue list
Retrieves default column values for a specific document library
Usage
m365 spo list defaultvalue list [options]
Options
-u, --webUrl <webUrl>URL of the site where the list is located.
-i, --listId [listId]ID of the list. Specify either
listTitle,listId, orlistUrl.-t, --listTitle [listTitle]Title of the list. Specify either
listTitle,listId, orlistUrl.--listUrl [listUrl]Server- or site-relative URL of the list. Specify either
listTitle,listId, orlistUrl.--folderUrl [folderUrl]Only get default column values from a specific folder.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
List all default column values of a list specified by title
m365 spo list defaultvalue list --webUrl https://contoso.sharepoint.com/sites/marketing --listTitle "Project Documents"
List all default column values of a list specified by ID
m365 spo list defaultvalue list --webUrl https://contoso.sharepoint.com/sites/marketing --listId 12345678-90ab-cdef-1234-567890abcdef
List all default column values of a list specified by server relative URL
m365 spo list defaultvalue list --webUrl https://contoso.sharepoint.com/sites/marketing --listUrl "/sites/marketing/Project Documents"
List all default column values of a specific folder in a list specified by site relative URLs
m365 spo list defaultvalue list --webUrl https://contoso.sharepoint.com/sites/marketing --listUrl "/Project Documents" --folderUrl "/Project Documents/Archive"
Response
- JSON
- Text
- CSV
- Markdown
[
{
"fieldName": "Countries",
"fieldValue": "19;#Belgium|442affc2-7fab-4f33-9590-330403a579c2",
"folderUrl": "/sites/Marketing/Project Documents"
}
]
fieldName fieldValue folderUrl
--------- ------------------------------------------------ ----------------------------------
Countries 19;#Belgium|442affc2-7fab-4f33-9590-330403a579c2 /sites/Marketing/Project Documents
fieldName,fieldValue,folderUrl
Countries,19;#Belgium|442affc2-7fab-4f33-9590-330403a579c2,/sites/Marketing/Project Documents
# spo list defaultvalue list --webUrl "https://contoso.sharepoint.com/sites/marketing" --listUrl "/Project Documents"
Date: 20/10/2024
Property | Value
---------|-------
fieldName | Countries
fieldValue | 19;#Belgium\|442affc2-7fab-4f33-9590-330403a579c2
folderUrl | /sites/Marketing/Project Documents