-
Notifications
You must be signed in to change notification settings - Fork 332
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 set
#6503
Comments
@milanholemans isn't it possible to set default value for a column on a list using |
It's not about setting a default field value, but about setting a folder default value on a list. In the UI, you can do it over here: It's related to #6404 |
aaaa ok now I get it |
spo list defaultcolumnvalue set
spo list defaultvalue set
@milanholemans in this case the spec LGTM. |
There's not really an API endpoint for it, the command has to do all the logic itself. But I'm willing to work on it. |
Usage
m365 spo list defaultvalue set [options]
Description
Sets default column values for a specific document library
Options
-u, --webUrl <webUrl>
-i, --listId [listId]
listTitle
,listId
, orlistUrl
.-t, --listTitle [listTitle]
listTitle
,listId
, orlistUrl
.--listUrl [listUrl]
listTitle
,listId
, orlistUrl
.--fieldName <fieldName>
--fieldValue <fieldValue>
--folderUrl [folderUrl]
Examples
Set a default folder value on the root folder of a list for a text field
m365 spo list defaultvalue set --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --fieldName Company --fieldValueContoso
Set a default folder value for a taxonomy field on a specific folder
Set a default folder value for a multi-taxonomy field on a specific folder
Set a default folder value for a date field to today
Set a default folder value for a date field
Set a default folder value for a choice field
Set a default folder value for a multi-choice field
Set a default folder value for a yes/no field
m365 spo list defaultvalue set --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --fieldName Active --fieldValue1
Set a default folder value for a user field
Set a default folder value for a multi-user field
Default properties
No response
Additional Info
Warning
Folders with special characters are not supported.
The text was updated successfully, but these errors were encountered: