Cli-microsoft365: Add 'spo list contenttype default' command?

Created on 2 Apr 2019  路  4Comments  路  Source: pnp/cli-microsoft365

Summary

I had to create new content types and define one of them by default rather than keep the default by SharePoint.
I didn't found a cmdlet that allow to define that...
If does not exist, create a cmdlet that allow to do that spo list contenttype default --webUrl [...] --listId/--listTitle --contentTypeId/--contentTypeName

Note: content type name is unique for a webUrl scope.

What do you think about this cmdlet? If you agree with this idea, I'll write a properly the specs of this issue ;)

needs design new feature

All 4 comments

I like the idea, but using default as a verb isn't clear to me if it's a get or a set operation. What if we'd name the command like spo list contenttype set and then use a --default option to denote that we want to set the particular content type as default on the list?

I like --default option. This option can be use for the set and get cmdlet too?

Good idea! Let's create two separate issues to track the changes.

Ok, I'll do it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

garrytrinder picture garrytrinder  路  32Comments

phawrylak picture phawrylak  路  22Comments

waldekmastykarz picture waldekmastykarz  路  31Comments

appieschot picture appieschot  路  29Comments

garrytrinder picture garrytrinder  路  22Comments