-
Notifications
You must be signed in to change notification settings - Fork 328
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 clear
#6505
Comments
I find it confusing that we use Are there other operations that we might want to do on a list column? If so, we should consider using the |
I believe this is not about default values set on fields, but library default values, set on field/folder combinations. This is a spo legacy feature that by the way I've seen odd behavior with in modern document set forms.
|
I understand that. I only find it confusing that we're referring to the same thing using two different words in one command. Have we considered dropping the field/column part altogether and using something like |
In the UI, it's called column default values: That's why I choose this name, so people can easily find it as command. I understand that it might be confusing, what't the difference between a column and a field. However field defaultvalue might be confusing with setting a default value on a list field. |
Say we'd allow:
Then An alternative is to require users to run the command 3 times one for each field, with an option like |
That's a typical inconsistency in the UI, like both webs and site collections being both called sites, that I believe we shouldn't copy. |
Personally I would opt for this option. I'm thinking it might become confusing if you are using unknown options. Could something like this work?
|
So with the first example you are clearing one field default, but with the second example you may be clearing multiple field defaults, depending on the folder value. Seems logical to me. I'd prefer this to unknowns as well. |
That's the idea yeah, if you specify only |
Naming consistency can be such a hassle. I think going with the more generic |
Good rationale. Let's roll with it. |
spo list defaultcolumnvalue clear
spo list defaultvalue clear
Usage
m365 spo list defaultvalue clear [options]
Description
Clears 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]
fieldName
orfolderUrl
, but not both.--folderUrl [folderUrl]
fieldName
orfolderUrl
, but not both.-f, --force
Examples
Remove all default column values from a library
Clear a field from all folders of a library
Clear all fields from a specific folder
m365 spo list defaultvalue clear --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --folderUrl "/sites/Marketing/Logos/Contoso"
Default properties
No response
Additional Info
No response
The text was updated successfully, but these errors were encountered: