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: Get the fields of a Content Type #5677
Comments
@waldekmastykarz: when I'm reading my own specs I'm thinking: we should have --properties for all list commands as well... |
I was just about to ask the same 😉 Seems very much like the Also, shouldn't we support referring to the content type by its name? |
Updated! |
Awesome suggestion 👏. Let's get this 🚢 |
Is it intentionally that you removed |
Yes it was, as we were discussing a possible cli wide implementation of --properties. However; we've put that in the freezer, so we could add properties again here. Seems a logical place to add it |
Can I work on this? |
All yours |
One specific scenario that are are currently missing...
Usage
m365 spo contenttype field list
Description
Lists fields for a given site or list content type
Options
-u, --webUrl <webUrl>
-i, --contentTypeId [contentTypeId]
contentTypeId
orcontentTypeName
.-n, --contentTypeName [contentTypeName]
contentTypeId
orcontentTypeName
.-t, --listTitle [listTitle]
listTitle
,listId
orlistUrl
.--listId [listId]
listTitle
,listId
orlistUrl
.--listUrl [listUrl]
listTitle
,listId
orlistUrl
.-p, --properties [properties]
Examples
Retrieves columns for the specified site content type
m365 spo contenttype field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --contentTypeId "0x01"
Retrieves columns for the specified list content type in the Documents library
Additional Info
The text was updated successfully, but these errors were encountered: