Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: spo list defaultvalue get #6535

Open
milanholemans opened this issue Dec 23, 2024 · 0 comments
Open

New command: spo list defaultvalue get #6535

milanholemans opened this issue Dec 23, 2024 · 0 comments
Labels
needs peer review Needs second pair of eyes to review the spec or PR new feature

Comments

@milanholemans
Copy link
Contributor

Usage

m365 spo list defaultvalue get [options]

Description

Gets a specific default column value from a list

Options

Option Description
-u, --webUrl <webUrl> URL of the site where the list is located.
-i, --listId [listId] ID of the list. Specify either listTitle, listId, or listUrl.
-t, --listTitle [listTitle] Title of the list. Specify either listTitle, listId, or listUrl.
--listUrl [listUrl] Server- or site-relative URL of the list. Specify either listTitle, listId, or listUrl.
--fieldName <fieldName> Internal name of the field.
--folderUrl [folderUrl] Remove the value on a specific folder. By default, the root folder of the list is used.

Examples

Get a column default value from the root of the list

m365 spo list defaultvalue get --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --fieldName Company

Get a column default value from a specific folder

m365 spo list defaultvalue get --webUrl https://contoso.sharepoint.com/sites/Marketing --listUrl '/Logos' --fieldName Company --folderUrl '/Logos/Branding'

Get a column default value from a specific folder by server-relative URL

m365 spo list defaultvalue get --webUrl https://contoso.sharepoint.com/sites/Marketing --listUrl '/sites/Marketing/Logos' --fieldName Company --folderUrl '/sites/Marketing/Logos/Branding'

Default properties

No response

Additional Info

Let's throw an error when the value was not found.

@milanholemans milanholemans added new feature needs peer review Needs second pair of eyes to review the spec or PR labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs peer review Needs second pair of eyes to review the spec or PR new feature
Projects
None yet
Development

No branches or pull requests

1 participant