@pnp/cli-microsoft365 7.1.0-beta.aca68bd → 7.1.0-beta.d53f0d9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/Dockerfile +0 -1
- package/.eslintrc.cjs +1 -0
- package/Dockerfile +0 -1
- package/dist/Auth.js +1 -1
- package/dist/appInsights.js +5 -9
- package/dist/cli/Cli.js +6 -2
- package/dist/m365/spo/commands/app/app-deploy.js +1 -1
- package/dist/m365/spo/commands/app/app-get.js +1 -1
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +1 -1
- package/dist/m365/spo/commands/apppage/apppage-add.js +1 -1
- package/dist/m365/spo/commands/feature/feature-disable.js +8 -6
- package/dist/m365/spo/commands/feature/feature-enable.js +6 -5
- package/dist/m365/spo/commands/page/Page.js +1 -1
- package/dist/m365/spo/commands/page/page-add.js +1 -1
- package/dist/m365/spo/commands/page/page-get.js +1 -1
- package/dist/m365/spo/commands/page/page-header-set.js +1 -1
- package/dist/m365/spo/commands/page/page-remove.js +1 -1
- package/dist/m365/spo/commands/page/page-set.js +2 -2
- package/dist/m365/spo/commands/page/page-text-add.js +1 -1
- package/dist/m365/spo/commands/user/user-get.js +7 -1
- package/dist/telemetry.js +30 -14
- package/dist/telemetryRunner.js +26 -0
- package/docs/docs/cmd/aad/license/license-list.mdx +21 -16
- package/docs/docs/cmd/aad/m365group/m365group-add.mdx +1 -1
- package/docs/docs/cmd/aad/user/user-add.mdx +2 -4
- package/docs/docs/cmd/aad/user/user-license-add.mdx +2 -4
- package/docs/docs/cmd/aad/user/user-license-list.mdx +3 -5
- package/docs/docs/cmd/aad/user/user-recyclebinitem-list.mdx +1 -3
- package/docs/docs/cmd/aad/user/user-recyclebinitem-restore.mdx +1 -3
- package/docs/docs/cmd/flow/environment/environment-get.mdx +3 -4
- package/docs/docs/cmd/flow/environment/environment-list.mdx +3 -4
- package/docs/docs/cmd/flow/owner/owner-list.mdx +2 -3
- package/docs/docs/cmd/flow/run/run-list.mdx +6 -8
- package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +2 -3
- package/docs/docs/cmd/onenote/page/page-list.mdx +6 -9
- package/docs/docs/cmd/outlook/message/message-get.mdx +5 -15
- package/docs/docs/cmd/outlook/message/message-list.mdx +5 -14
- package/docs/docs/cmd/outlook/room/room-list.mdx +3 -6
- package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +1 -3
- package/docs/docs/cmd/pa/app/app-get.mdx +4 -7
- package/docs/docs/cmd/pa/app/app-list.mdx +4 -7
- package/docs/docs/cmd/pa/connector/connector-list.mdx +2 -4
- package/docs/docs/cmd/pa/environment/environment-get.mdx +2 -4
- package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -3
- package/docs/docs/cmd/planner/plan/plan-add.mdx +4 -11
- package/docs/docs/cmd/planner/plan/plan-get.mdx +4 -9
- package/docs/docs/cmd/planner/plan/plan-list.mdx +3 -6
- package/docs/docs/cmd/planner/plan/plan-set.mdx +3 -9
- package/docs/docs/cmd/planner/roster/roster-member-add.mdx +2 -4
- package/docs/docs/cmd/planner/roster/roster-member-get.mdx +2 -4
- package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -3
- package/docs/docs/cmd/planner/task/task-add.mdx +4 -14
- package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +2 -4
- package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +1 -3
- package/docs/docs/cmd/planner/task/task-get.mdx +0 -7
- package/docs/docs/cmd/planner/task/task-list.mdx +1 -5
- package/docs/docs/cmd/planner/task/task-reference-add.mdx +0 -2
- package/docs/docs/cmd/planner/task/task-reference-list.mdx +0 -2
- package/docs/docs/cmd/planner/task/task-set.mdx +4 -13
- package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +1 -3
- package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +3 -5
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +6 -8
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +4 -7
- package/docs/docs/cmd/pp/card/card-get.mdx +4 -8
- package/docs/docs/cmd/pp/card/card-list.mdx +0 -4
- package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +4 -6
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +3 -14
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +3 -14
- package/docs/docs/cmd/pp/environment/environment-get.mdx +3 -5
- package/docs/docs/cmd/pp/environment/environment-list.mdx +2 -4
- package/docs/docs/cmd/pp/gateway/gateway-get.mdx +0 -3
- package/docs/docs/cmd/pp/gateway/gateway-list.mdx +1 -4
- package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +4 -0
- package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +3 -8
- package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -3
- package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -5
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +0 -2
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -3
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -3
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +3 -6
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +3 -5
- package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +4 -8
- package/docs/docs/cmd/spo/app/app-add.mdx +94 -7
- package/docs/docs/cmd/spo/app/app-deploy.mdx +11 -7
- package/docs/docs/cmd/spo/app/app-get.mdx +117 -8
- package/docs/docs/cmd/spo/app/app-install.mdx +9 -5
- package/docs/docs/cmd/spo/app/app-instance-list.mdx +85 -2
- package/docs/docs/cmd/spo/app/app-list.mdx +95 -3
- package/docs/docs/cmd/spo/app/app-remove.mdx +11 -7
- package/docs/docs/cmd/spo/app/app-retract.mdx +9 -5
- package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +12 -8
- package/docs/docs/cmd/spo/app/app-uninstall.mdx +11 -7
- package/docs/docs/cmd/spo/app/app-upgrade.mdx +9 -5
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +4 -2
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +9 -7
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +6 -6
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +12 -6
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +4 -2
- package/docs/docs/cmd/spo/apppage/apppage-add.mdx +54 -5
- package/docs/docs/cmd/spo/apppage/apppage-set.mdx +8 -4
- package/docs/docs/cmd/spo/cdn/cdn-get.mdx +36 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +7 -3
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +48 -3
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +8 -4
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +53 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +7 -3
- package/docs/docs/cmd/spo/cdn/cdn-set.mdx +7 -3
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +6 -6
- package/docs/docs/cmd/spo/commandset/commandset-get.mdx +3 -5
- package/docs/docs/cmd/spo/commandset/commandset-list.mdx +6 -5
- package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +7 -3
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +6 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +148 -9
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +19 -15
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +12 -8
- package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +147 -8
- package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +115 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +8 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +8 -4
- package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +44 -0
- package/docs/docs/cmd/spo/customaction/customaction-add.mdx +12 -8
- package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +10 -7
- package/docs/docs/cmd/spo/customaction/customaction-get.mdx +11 -15
- package/docs/docs/cmd/spo/customaction/customaction-list.mdx +87 -5
- package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +17 -13
- package/docs/docs/cmd/spo/customaction/customaction-set.mdx +27 -23
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +29 -14
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +66 -5
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +4 -0
- package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +78 -7
- package/docs/docs/cmd/spo/feature/feature-disable.mdx +10 -6
- package/docs/docs/cmd/spo/feature/feature-enable.mdx +9 -5
- package/docs/docs/cmd/spo/feature/feature-list.mdx +52 -0
- package/docs/docs/cmd/spo/field/field-add.mdx +177 -11
- package/docs/docs/cmd/spo/field/field-get.mdx +175 -9
- package/docs/docs/cmd/spo/field/field-list.mdx +135 -8
- package/docs/docs/cmd/spo/field/field-remove.mdx +16 -12
- package/docs/docs/cmd/spo/field/field-set.mdx +15 -11
- package/docs/docs/cmd/spo/file/file-add.mdx +31 -27
- package/docs/docs/cmd/spo/file/file-checkin.mdx +13 -9
- package/docs/docs/cmd/spo/file/file-checkout.mdx +9 -5
- package/docs/docs/cmd/spo/file/file-copy.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-get.mdx +89 -18
- package/docs/docs/cmd/spo/file/file-list.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-move.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-remove.mdx +13 -9
- package/docs/docs/cmd/spo/file/file-rename.mdx +63 -5
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +4 -0
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +7 -3
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +9 -5
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +10 -6
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +133 -5
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +21 -3
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +18 -0
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +20 -3
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +2 -7
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +7 -7
- package/docs/docs/cmd/spo/file/file-version-get.mdx +28 -6
- package/docs/docs/cmd/spo/file/file-version-list.mdx +28 -6
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +8 -8
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +8 -8
- package/docs/docs/cmd/spo/folder/folder-add.mdx +3 -3
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-get.mdx +257 -3
- package/docs/docs/cmd/spo/folder/folder-list.mdx +3 -4
- package/docs/docs/cmd/spo/folder/folder-move.mdx +5 -5
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +6 -2
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +3 -3
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +13 -8
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +8 -4
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +4 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +5 -1
- package/docs/docs/cmd/spo/group/group-add.mdx +78 -0
- package/docs/docs/cmd/spo/group/group-get.mdx +81 -3
- package/docs/docs/cmd/spo/group/group-list.mdx +74 -3
- package/docs/docs/cmd/spo/group/group-member-add.mdx +13 -21
- package/docs/docs/cmd/spo/group/group-member-list.mdx +80 -5
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +4 -4
- package/docs/docs/cmd/spo/group/group-remove.mdx +10 -6
- package/docs/docs/cmd/spo/group/group-set.mdx +9 -5
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +36 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +6 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +0 -2
- package/docs/docs/cmd/spo/list/list-add.mdx +0 -3
- package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +0 -2
- package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +0 -2
- package/docs/docs/cmd/spo/list/list-get.mdx +1 -4
- package/docs/docs/cmd/spo/list/list-list.mdx +0 -4
- package/docs/docs/cmd/spo/list/list-view-add.mdx +0 -3
- package/docs/docs/cmd/spo/list/list-view-get.mdx +9 -12
- package/docs/docs/cmd/spo/list/list-view-list.mdx +4 -7
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +8 -11
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -2
- package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +4 -6
- package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +0 -2
- package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +4 -6
- package/docs/docs/cmd/spo/page/page-copy.mdx +4 -8
- package/docs/docs/cmd/spo/page/page-get.mdx +2 -5
- package/docs/docs/cmd/spo/page/page-list.mdx +1 -5
- package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +4 -4
- package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +6 -7
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +3 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +5 -3
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +4 -2
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +5 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +2 -0
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +2 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +5 -2
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +4 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +5 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +3 -1
- package/docs/docs/cmd/spo/user/user-get.mdx +6 -0
- package/docs/docs/cmd/teams/channel/channel-member-list.mdx +3 -5
- package/docs/docs/cmd/teams/channel/channel-member-set.mdx +0 -2
- package/docs/docs/cmd/teams/chat/chat-get.mdx +2 -4
- package/docs/docs/cmd/teams/chat/chat-list.mdx +1 -3
- package/docs/docs/cmd/teams/chat/chat-member-list.mdx +2 -4
- package/docs/docs/cmd/teams/message/message-get.mdx +0 -7
- package/docs/docs/cmd/teams/message/message-list.mdx +0 -6
- package/docs/docs/cmd/teams/message/message-reply-list.mdx +0 -6
- package/docs/docs/cmd/teams/tab/tab-add.mdx +10 -12
- package/docs/docs/cmd/teams/tab/tab-get.mdx +8 -10
- package/docs/docs/cmd/teams/tab/tab-list.mdx +4 -7
- package/docs/docs/cmd/teams/team/team-add.mdx +0 -7
- package/docs/docs/cmd/teams/team/team-get.mdx +0 -6
- package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
- package/docs/docs/cmd/todo/task/task-add.mdx +9 -13
- package/docs/docs/cmd/todo/task/task-set.mdx +10 -14
- package/eslint-rules/lib/index.js +2 -1
- package/eslint-rules/lib/rules/no-by-server-relative-url-usage.js +55 -0
- package/npm-shrinkwrap.json +86 -82
- package/package.json +20 -19
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spo contenttype add
|
|
4
6
|
|
|
@@ -14,7 +16,7 @@ m365 spo contenttype add [options]
|
|
|
14
16
|
|
|
15
17
|
```md definition-list
|
|
16
18
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: Absolute URL of the site where the content type should be created
|
|
19
|
+
: Absolute URL of the site where the content type should be created.
|
|
18
20
|
|
|
19
21
|
`-l, --listTitle [listTitle]`
|
|
20
22
|
: Title of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
|
|
@@ -26,16 +28,16 @@ m365 spo contenttype add [options]
|
|
|
26
28
|
: Server- or site-relative URL of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
|
|
27
29
|
|
|
28
30
|
`-i, --id <id>`
|
|
29
|
-
: The ID of the content type. Determines the parent content type
|
|
31
|
+
: The ID of the content type. Determines the parent content type.
|
|
30
32
|
|
|
31
33
|
`-n, --name <name>`
|
|
32
|
-
: The name of the content type
|
|
34
|
+
: The name of the content type.
|
|
33
35
|
|
|
34
36
|
`-d, --description [description]`
|
|
35
|
-
: The description of the content type
|
|
37
|
+
: The description of the content type.
|
|
36
38
|
|
|
37
39
|
`-g, --group [group]`
|
|
38
|
-
: The group with which the content type should be associated
|
|
40
|
+
: The group with which the content type should be associated.
|
|
39
41
|
```
|
|
40
42
|
|
|
41
43
|
<Global />
|
|
@@ -48,30 +50,167 @@ The ID of the content type specifies the parent content type from which this con
|
|
|
48
50
|
|
|
49
51
|
## Examples
|
|
50
52
|
|
|
51
|
-
Create a site content type that inherits from the List item content type
|
|
53
|
+
Create a site content type that inherits from the List item content type.
|
|
52
54
|
|
|
53
55
|
```sh
|
|
54
56
|
m365 spo contenttype add --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name 'PnP Alert' --id 0x01007926A45D687BA842B947286090B8F67D --group 'PnP Content Types'
|
|
55
57
|
```
|
|
56
58
|
|
|
57
|
-
Create a list (retrieved by Title) content type that inherits from the List item content type
|
|
59
|
+
Create a list (retrieved by Title) content type that inherits from the List item content type.
|
|
58
60
|
|
|
59
61
|
```sh
|
|
60
62
|
m365 spo contenttype add --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Alerts --name 'PnP Alert' --id 0x01007926A45D687BA842B947286090B8F67D
|
|
61
63
|
```
|
|
62
64
|
|
|
63
|
-
Create a list (retrieved by ID) content type that inherits from the List item content type
|
|
65
|
+
Create a list (retrieved by ID) content type that inherits from the List item content type.
|
|
64
66
|
|
|
65
67
|
```sh
|
|
66
68
|
m365 spo contenttype add --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c' --name 'PnP Alert' --id 0x01007926A45D687BA842B947286090B8F67D
|
|
67
69
|
```
|
|
68
70
|
|
|
69
|
-
Create a list (retrieved by URL) content type that inherits from the List item content type
|
|
71
|
+
Create a list (retrieved by URL) content type that inherits from the List item content type.
|
|
70
72
|
|
|
71
73
|
```sh
|
|
72
74
|
m365 spo contenttype add --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/Shared Documents' --name 'PnP Alert' --id 0x01007926A45D687BA842B947286090B8F67D
|
|
73
75
|
```
|
|
74
76
|
|
|
77
|
+
## Response
|
|
78
|
+
|
|
79
|
+
<Tabs>
|
|
80
|
+
<TabItem value="JSON">
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
{
|
|
84
|
+
"ClientFormCustomFormatter": "",
|
|
85
|
+
"Description": "Create a new list item.",
|
|
86
|
+
"DisplayFormClientSideComponentId": "",
|
|
87
|
+
"DisplayFormClientSideComponentProperties": "",
|
|
88
|
+
"DisplayFormTarget": 0,
|
|
89
|
+
"DisplayFormTemplateName": "ListForm",
|
|
90
|
+
"DisplayFormUrl": "",
|
|
91
|
+
"DocumentTemplate": "",
|
|
92
|
+
"DocumentTemplateUrl": "",
|
|
93
|
+
"EditFormClientSideComponentId": "",
|
|
94
|
+
"EditFormClientSideComponentProperties": "",
|
|
95
|
+
"EditFormTarget": 0,
|
|
96
|
+
"EditFormTemplateName": "ListForm",
|
|
97
|
+
"EditFormUrl": "",
|
|
98
|
+
"Group": "PnP Content Types",
|
|
99
|
+
"Hidden": false,
|
|
100
|
+
"Id": {
|
|
101
|
+
"StringValue": "0x01007926A45D687BA842B947286090B8F67D"
|
|
102
|
+
},
|
|
103
|
+
"JSLink": "",
|
|
104
|
+
"MobileDisplayFormUrl": "",
|
|
105
|
+
"MobileEditFormUrl": "",
|
|
106
|
+
"MobileNewFormUrl": "",
|
|
107
|
+
"Name": "PnP Alert",
|
|
108
|
+
"NewFormClientSideComponentId": null,
|
|
109
|
+
"NewFormClientSideComponentProperties": "",
|
|
110
|
+
"NewFormTarget": 0,
|
|
111
|
+
"NewFormTemplateName": "ListForm",
|
|
112
|
+
"NewFormUrl": "",
|
|
113
|
+
"ReadOnly": false,
|
|
114
|
+
"SchemaXml": "<ContentType ID=\"0x01007926A45D687BA842B947286090B8F67D\" Name=\"PnP Alert\" Group=\"PnP Content Types\" Description=\"Create a new list item.\" Version=\"0\"><Folder TargetName=\"_cts/PnP Alert\" /><Fields><Field ID=\"{c042a256-787d-4a6f-8a8a-cf6ab767f12d}\" Name=\"ContentType\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"ContentType\" Group=\"_Hidden\" Type=\"Computed\" DisplayName=\"Content Type\" Sealed=\"TRUE\" Sortable=\"FALSE\" RenderXMLUsingPattern=\"TRUE\" PITarget=\"MicrosoftWindowsSharePointServices\" PIAttribute=\"ContentTypeID\" DelayActivateTemplateBinding=\"GROUP,SPSPERS,SITEPAGEPUBLISHING\" Customization=\"\"><FieldRefs><FieldRef ID=\"{03e45e84-1992-4d42-9116-26f756012634}\" Name=\"ContentTypeId\" /></FieldRefs><DisplayPattern><MapToContentType><Column Name=\"ContentTypeId\" /></MapToContentType></DisplayPattern></Field><Field ID=\"{fa564e0f-0c70-4ab9-b863-0177e6ddd247}\" Name=\"Title\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Title\" Group=\"_Hidden\" Type=\"Text\" DisplayName=\"Title\" Required=\"TRUE\" FromBaseType=\"TRUE\" DelayActivateTemplateBinding=\"GROUP,SPSPERS,SITEPAGEPUBLISHING\" Customization=\"\" ShowInNewForm=\"TRUE\" ShowInEditForm=\"TRUE\"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI=\"http://schemas.microsoft.com/sharepoint/v3/contenttype/forms\"><FormTemplates xmlns=\"http://schemas.microsoft.com/sharepoint/v3/contenttype/forms\"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>",
|
|
115
|
+
"Scope": "/sites/contoso-sales",
|
|
116
|
+
"Sealed": false,
|
|
117
|
+
"StringId": "0x01007926A45D687BA842B947286090B8F67D"
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
</TabItem>
|
|
122
|
+
<TabItem value="Text">
|
|
123
|
+
|
|
124
|
+
```text
|
|
125
|
+
ClientFormCustomFormatter :
|
|
126
|
+
Description : Create a new list item.
|
|
127
|
+
DisplayFormClientSideComponentId :
|
|
128
|
+
DisplayFormClientSideComponentProperties:
|
|
129
|
+
DisplayFormTarget : 0
|
|
130
|
+
DisplayFormTemplateName : ListForm
|
|
131
|
+
DisplayFormUrl :
|
|
132
|
+
DocumentTemplate :
|
|
133
|
+
DocumentTemplateUrl :
|
|
134
|
+
EditFormClientSideComponentId :
|
|
135
|
+
EditFormClientSideComponentProperties :
|
|
136
|
+
EditFormTarget : 0
|
|
137
|
+
EditFormTemplateName : ListForm
|
|
138
|
+
EditFormUrl :
|
|
139
|
+
Group : PnP Content Types
|
|
140
|
+
Hidden : false
|
|
141
|
+
Id : {"StringValue":"0x01007926A45D687BA842B947286090B8F67D"}
|
|
142
|
+
JSLink :
|
|
143
|
+
MobileDisplayFormUrl :
|
|
144
|
+
MobileEditFormUrl :
|
|
145
|
+
MobileNewFormUrl :
|
|
146
|
+
Name : PnP Alert
|
|
147
|
+
NewFormClientSideComponentId : null
|
|
148
|
+
NewFormClientSideComponentProperties :
|
|
149
|
+
NewFormTarget : 0
|
|
150
|
+
NewFormTemplateName : ListForm
|
|
151
|
+
NewFormUrl :
|
|
152
|
+
ReadOnly : false
|
|
153
|
+
SchemaXml : <ContentType ID="0x01007926A45D687BA842B947286090B8F67D" Name="PnP Alert" Group="PnP Content Types" Description="Create a new list item." Version="0"><Folder TargetName="_cts/PnP Alert" /><Fields><Field ID="{c042a256-787d-4a6f-8a8a-cf6ab767f12d}" Name="ContentType" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="ContentType" Group="_Hidden" Type="Computed" DisplayName="Content Type" Sealed="TRUE" Sortable="FALSE" RenderXMLUsingPattern="TRUE" PITarget="MicrosoftWindowsSharePointServices" PIAttribute="ContentTypeID" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization=""><FieldRefs><FieldRef ID="{03e45e84-1992-4d42-9116-26f756012634}" Name="ContentTypeId" /></FieldRefs><DisplayPattern><MapToContentType><Column Name="ContentTypeId" /></MapToContentType></DisplayPattern></Field><Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" Group="_Hidden" Type="Text" DisplayName="Title" Required="TRUE" FromBaseType="TRUE" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization="" ShowInNewForm="TRUE" ShowInEditForm="TRUE"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>
|
|
154
|
+
Scope : /sites/contoso-sales
|
|
155
|
+
Sealed : false
|
|
156
|
+
StringId : 0x01007926A45D687BA842B947286090B8F67D
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
</TabItem>
|
|
160
|
+
<TabItem value="CSV">
|
|
161
|
+
|
|
162
|
+
```csv
|
|
163
|
+
ClientFormCustomFormatter,Description,DisplayFormClientSideComponentId,DisplayFormClientSideComponentProperties,DisplayFormTarget,DisplayFormTemplateName,DisplayFormUrl,DocumentTemplate,DocumentTemplateUrl,EditFormClientSideComponentId,EditFormClientSideComponentProperties,EditFormTarget,EditFormTemplateName,EditFormUrl,Group,Hidden,JSLink,MobileDisplayFormUrl,MobileEditFormUrl,MobileNewFormUrl,Name,NewFormClientSideComponentProperties,NewFormTarget,NewFormTemplateName,NewFormUrl,ReadOnly,SchemaXml,Scope,Sealed,StringId
|
|
164
|
+
,Create a new list item.,,,0,ListForm,,,,,,0,ListForm,,PnP Content Types,,,,,,PnP Alert,,0,ListForm,,,"<ContentType ID=""0x01007926A45D687BA842B947286090B8F67D"" Name=""PnP Alert"" Group=""PnP Content Types"" Description=""Create a new list item."" Version=""0""><Folder TargetName=""_cts/PnP Alert"" /><Fields><Field ID=""{c042a256-787d-4a6f-8a8a-cf6ab767f12d}"" Name=""ContentType"" SourceID=""http://schemas.microsoft.com/sharepoint/v3"" StaticName=""ContentType"" Group=""_Hidden"" Type=""Computed"" DisplayName=""Content Type"" Sealed=""TRUE"" Sortable=""FALSE"" RenderXMLUsingPattern=""TRUE"" PITarget=""MicrosoftWindowsSharePointServices"" PIAttribute=""ContentTypeID"" DelayActivateTemplateBinding=""GROUP,SPSPERS,SITEPAGEPUBLISHING"" Customization=""""><FieldRefs><FieldRef ID=""{03e45e84-1992-4d42-9116-26f756012634}"" Name=""ContentTypeId"" /></FieldRefs><DisplayPattern><MapToContentType><Column Name=""ContentTypeId"" /></MapToContentType></DisplayPattern></Field><Field ID=""{fa564e0f-0c70-4ab9-b863-0177e6ddd247}"" Name=""Title"" SourceID=""http://schemas.microsoft.com/sharepoint/v3"" StaticName=""Title"" Group=""_Hidden"" Type=""Text"" DisplayName=""Title"" Required=""TRUE"" FromBaseType=""TRUE"" DelayActivateTemplateBinding=""GROUP,SPSPERS,SITEPAGEPUBLISHING"" Customization="""" ShowInNewForm=""TRUE"" ShowInEditForm=""TRUE""></Field></Fields><XmlDocuments><XmlDocument NamespaceURI=""http://schemas.microsoft.com/sharepoint/v3/contenttype/forms""><FormTemplates xmlns=""http://schemas.microsoft.com/sharepoint/v3/contenttype/forms""><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>",/sites/contoso-sales,,0x01007926A45D687BA842B947286090B8F67D
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
</TabItem>
|
|
168
|
+
<TabItem value="Markdown">
|
|
169
|
+
|
|
170
|
+
```md
|
|
171
|
+
# spo contenttype add --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --name "PnP Alert" --id "0x01007926A45D687BA842B947286090B8F67D" --group "PnP Content Types"
|
|
172
|
+
|
|
173
|
+
Date: 10/2/2023
|
|
174
|
+
|
|
175
|
+
## PnP Alert ([object Object])
|
|
176
|
+
|
|
177
|
+
Property | Value
|
|
178
|
+
---------|-------
|
|
179
|
+
ClientFormCustomFormatter |
|
|
180
|
+
Description | Create a new list item.
|
|
181
|
+
DisplayFormClientSideComponentId |
|
|
182
|
+
DisplayFormClientSideComponentProperties |
|
|
183
|
+
DisplayFormTarget | 0
|
|
184
|
+
DisplayFormTemplateName | ListForm
|
|
185
|
+
DisplayFormUrl |
|
|
186
|
+
DocumentTemplate |
|
|
187
|
+
DocumentTemplateUrl |
|
|
188
|
+
EditFormClientSideComponentId |
|
|
189
|
+
EditFormClientSideComponentProperties |
|
|
190
|
+
EditFormTarget | 0
|
|
191
|
+
EditFormTemplateName | ListForm
|
|
192
|
+
EditFormUrl |
|
|
193
|
+
Group | PnP Content Types
|
|
194
|
+
Hidden | false
|
|
195
|
+
JSLink |
|
|
196
|
+
MobileDisplayFormUrl |
|
|
197
|
+
MobileEditFormUrl |
|
|
198
|
+
MobileNewFormUrl |
|
|
199
|
+
Name | PnP Alert
|
|
200
|
+
NewFormClientSideComponentProperties |
|
|
201
|
+
NewFormTarget | 0
|
|
202
|
+
NewFormTemplateName | ListForm
|
|
203
|
+
NewFormUrl |
|
|
204
|
+
ReadOnly | false
|
|
205
|
+
SchemaXml | <ContentType ID="0x01007926A45D687BA842B947286090B8F67D" Name="PnP Alert" Group="PnP Content Types" Description="Create a new list item." Version="0"><Folder TargetName="\_cts/PnP Alert" /><Fields><Field ID="{c042a256-787d-4a6f-8a8a-cf6ab767f12d}" Name="ContentType" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="ContentType" Group="\_Hidden" Type="Computed" DisplayName="Content Type" Sealed="TRUE" Sortable="FALSE" RenderXMLUsingPattern="TRUE" PITarget="MicrosoftWindowsSharePointServices" PIAttribute="ContentTypeID" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization=""><FieldRefs><FieldRef ID="{03e45e84-1992-4d42-9116-26f756012634}" Name="ContentTypeId" /></FieldRefs><DisplayPattern><MapToContentType><Column Name="ContentTypeId" /></MapToContentType></DisplayPattern></Field><Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" Group="\_Hidden" Type="Text" DisplayName="Title" Required="TRUE" FromBaseType="TRUE" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization="" ShowInNewForm="TRUE" ShowInEditForm="TRUE"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>
|
|
206
|
+
Scope | /sites/contoso-sales
|
|
207
|
+
Sealed | false
|
|
208
|
+
StringId | 0x01007926A45D687BA842B947286090B8F67D
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
</TabItem>
|
|
212
|
+
</Tabs>
|
|
213
|
+
|
|
75
214
|
## More information
|
|
76
215
|
|
|
77
216
|
- Content Type IDs: [https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543822(v%3Doffice.14)](https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543822(v%3Doffice.14))
|
|
@@ -2,7 +2,7 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
|
|
3
3
|
# spo contenttype field remove
|
|
4
4
|
|
|
5
|
-
Removes a column from a site
|
|
5
|
+
Removes a column from a site or list content type
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ m365 spo contenttype field remove [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: Absolute URL of the site where the content type is located
|
|
17
|
+
: Absolute URL of the site where the content type is located.
|
|
18
18
|
|
|
19
19
|
`-l, --listTitle [listTitle]`
|
|
20
20
|
: Title of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
|
|
@@ -26,16 +26,16 @@ m365 spo contenttype field remove [options]
|
|
|
26
26
|
: Server- or site-relative URL of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
|
|
27
27
|
|
|
28
28
|
`-i, --contentTypeId <contentTypeId>`
|
|
29
|
-
: The ID of the content type to remove the column from
|
|
29
|
+
: The ID of the content type to remove the column from.
|
|
30
30
|
|
|
31
31
|
`--fieldLinkId <fieldLinkId>`
|
|
32
|
-
: The ID of the column to remove
|
|
32
|
+
: The ID of the column to remove.
|
|
33
33
|
|
|
34
34
|
`-c, --updateChildContentTypes`
|
|
35
|
-
: Update child content types
|
|
35
|
+
: Update child content types.
|
|
36
36
|
|
|
37
37
|
`-f, --force`
|
|
38
|
-
: Don't prompt for confirming removal of a column from content type
|
|
38
|
+
: Don't prompt for confirming removal of a column from content type.
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
<Global />
|
|
@@ -45,29 +45,33 @@ m365 spo contenttype field remove [options]
|
|
|
45
45
|
Remove column with a specific ID from a content type with a specific ID from a specific site.
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
|
-
m365 spo contenttype field remove
|
|
48
|
+
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --force
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
Remove column with a specific ID from a content type with a specific ID from a specific site and updating the child content types
|
|
51
|
+
Remove column with a specific ID from a content type with a specific ID from a specific site and updating the child content types.
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
m365 spo contenttype field remove
|
|
54
|
+
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --updateChildContentTypes
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
Remove fieldLink with a specific ID from a list (obtained by Title) content type with a specific ID on a
|
|
57
|
+
Remove fieldLink with a specific ID from a list (obtained by Title) content type with a specific ID on a specific site.
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
|
-
m365 spo contenttype field remove
|
|
60
|
+
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listTitle "Documents"
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
Remove fieldLink with a specific ID from a list (obtained by ID) content type with a specific ID on a
|
|
63
|
+
Remove fieldLink with a specific ID from a list (obtained by ID) content type with a specific ID on a specific site.
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
|
-
m365 spo contenttype field remove
|
|
66
|
+
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listId "8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c"
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Remove fieldLink with a specific ID from a list (obtained by URL) content type with a specific ID on a
|
|
69
|
+
Remove fieldLink with a specific ID from a list (obtained by URL) content type with a specific ID on a specific site.
|
|
70
70
|
|
|
71
71
|
```sh
|
|
72
|
-
m365 spo contenttype field remove
|
|
72
|
+
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listUrl "/shared documents"
|
|
73
73
|
```
|
|
74
|
+
|
|
75
|
+
## Response
|
|
76
|
+
|
|
77
|
+
The command won't return a response on success.
|
|
@@ -14,19 +14,19 @@ m365 spo contenttype field set [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: Absolute URL of the site where the content type is located
|
|
17
|
+
: Absolute URL of the site where the content type is located.
|
|
18
18
|
|
|
19
19
|
`-c, --contentTypeId <contentTypeId>`
|
|
20
|
-
: ID of the content type on which the field reference should be set
|
|
20
|
+
: ID of the content type on which the field reference should be set.
|
|
21
21
|
|
|
22
22
|
`--id <id>`
|
|
23
|
-
: ID of the field to which the reference should be set
|
|
23
|
+
: ID of the field to which the reference should be set.
|
|
24
24
|
|
|
25
25
|
`-r, --required [required]`
|
|
26
|
-
: Set to `true`, if the field should be required or to `false` if it should be optional
|
|
26
|
+
: Set to `true`, if the field should be required or to `false` if it should be optional.
|
|
27
27
|
|
|
28
28
|
`--hidden [hidden]`
|
|
29
|
-
: Set to `true`, if the field should be hidden or to `false` if it should be visible
|
|
29
|
+
: Set to `true`, if the field should be hidden or to `false` if it should be visible.
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
<Global />
|
|
@@ -37,20 +37,24 @@ If the field reference already exists, the command will update its _required_ an
|
|
|
37
37
|
|
|
38
38
|
## Examples
|
|
39
39
|
|
|
40
|
-
Add the specified site column to the specified content type as an optional and visible field
|
|
40
|
+
Add the specified site column to the specified content type as an optional and visible field.
|
|
41
41
|
|
|
42
42
|
```sh
|
|
43
43
|
m365 spo contenttype field set --webUrl https://contoso.sharepoint.com/sites/portal --contentTypeId 0x01007926A45D687BA842B947286090B8F67D --id ebe7e498-44ff-43da-a7e5-99b444f656a5
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
Add the specified site column to the specified content type as a required field
|
|
46
|
+
Add the specified site column to the specified content type as a required field.
|
|
47
47
|
|
|
48
48
|
```sh
|
|
49
49
|
m365 spo contenttype field set --webUrl https://contoso.sharepoint.com/sites/portal --contentTypeId 0x01007926A45D687BA842B947286090B8F67D --id ebe7e498-44ff-43da-a7e5-99b444f656a5 --required true
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
Update the existing site column reference in the specified content type to optional
|
|
52
|
+
Update the existing site column reference in the specified content type to optional.
|
|
53
53
|
|
|
54
54
|
```sh
|
|
55
55
|
m365 spo contenttype field set --webUrl https://contoso.sharepoint.com/sites/portal --contentTypeId 0x01007926A45D687BA842B947286090B8F67D --id ebe7e498-44ff-43da-a7e5-99b444f656a5 --required false
|
|
56
56
|
```
|
|
57
|
+
|
|
58
|
+
## Response
|
|
59
|
+
|
|
60
|
+
The command won't return a response on success.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spo contenttype get
|
|
4
6
|
|
|
@@ -14,7 +16,7 @@ m365 spo contenttype get [options]
|
|
|
14
16
|
|
|
15
17
|
```md definition-list
|
|
16
18
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: Absolute URL of the site where the content type is located
|
|
19
|
+
: Absolute URL of the site where the content type is located.
|
|
18
20
|
|
|
19
21
|
`-l, --listTitle [listTitle]`
|
|
20
22
|
: Title of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
|
|
@@ -26,10 +28,10 @@ m365 spo contenttype get [options]
|
|
|
26
28
|
: Server- or site-relative URL of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
|
|
27
29
|
|
|
28
30
|
`-i, --id [id]`
|
|
29
|
-
: The ID of the content type to retrieve. Specify either id or name but not both
|
|
31
|
+
: The ID of the content type to retrieve. Specify either id or name but not both.
|
|
30
32
|
|
|
31
33
|
`-n, --name [name]`
|
|
32
|
-
: The name of the content type to retrieve. Specify either id or name but not both
|
|
34
|
+
: The name of the content type to retrieve. Specify either id or name but not both.
|
|
33
35
|
```
|
|
34
36
|
|
|
35
37
|
<Global />
|
|
@@ -40,32 +42,169 @@ If no content type with the specified is found in the site or the list, you will
|
|
|
40
42
|
|
|
41
43
|
## Examples
|
|
42
44
|
|
|
43
|
-
Retrieve site content type by id
|
|
45
|
+
Retrieve site content type by id.
|
|
44
46
|
|
|
45
47
|
```sh
|
|
46
48
|
m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --id 0x0100558D85B7216F6A489A499DB361E1AE2F
|
|
47
49
|
```
|
|
48
50
|
|
|
49
|
-
Retrieve site content type by name
|
|
51
|
+
Retrieve site content type by name.
|
|
50
52
|
|
|
51
53
|
```sh
|
|
52
54
|
m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name 'Document'
|
|
53
55
|
```
|
|
54
56
|
|
|
55
|
-
Retrieve list (retrieved by Title) content type
|
|
57
|
+
Retrieve list (retrieved by Title) content type.
|
|
56
58
|
|
|
57
59
|
```sh
|
|
58
60
|
m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events --id 0x0100558D85B7216F6A489A499DB361E1AE2F
|
|
59
61
|
```
|
|
60
62
|
|
|
61
|
-
Retrieve list (retrieved by ID) content type
|
|
63
|
+
Retrieve list (retrieved by ID) content type.
|
|
62
64
|
|
|
63
65
|
```sh
|
|
64
66
|
m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c' --id 0x0100558D85B7216F6A489A499DB361E1AE2F
|
|
65
67
|
```
|
|
66
68
|
|
|
67
|
-
Retrieve list (retrieved by URL) content type
|
|
69
|
+
Retrieve list (retrieved by URL) content type.
|
|
68
70
|
|
|
69
71
|
```sh
|
|
70
72
|
m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/Shared Documents' --id 0x0100558D85B7216F6A489A499DB361E1AE2F
|
|
71
73
|
```
|
|
74
|
+
|
|
75
|
+
## Response
|
|
76
|
+
|
|
77
|
+
<Tabs>
|
|
78
|
+
<TabItem value="JSON">
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"ClientFormCustomFormatter": "",
|
|
83
|
+
"Description": "Create a new list item.",
|
|
84
|
+
"DisplayFormClientSideComponentId": "",
|
|
85
|
+
"DisplayFormClientSideComponentProperties": "",
|
|
86
|
+
"DisplayFormTarget": 0,
|
|
87
|
+
"DisplayFormTemplateName": "ListForm",
|
|
88
|
+
"DisplayFormUrl": "",
|
|
89
|
+
"DocumentTemplate": "",
|
|
90
|
+
"DocumentTemplateUrl": "",
|
|
91
|
+
"EditFormClientSideComponentId": "",
|
|
92
|
+
"EditFormClientSideComponentProperties": "",
|
|
93
|
+
"EditFormTarget": 0,
|
|
94
|
+
"EditFormTemplateName": "ListForm",
|
|
95
|
+
"EditFormUrl": "",
|
|
96
|
+
"Group": "PnP Content Types",
|
|
97
|
+
"Hidden": false,
|
|
98
|
+
"Id": {
|
|
99
|
+
"StringValue": "0x01007926A45D687BA842B947286090B8F67D"
|
|
100
|
+
},
|
|
101
|
+
"JSLink": "",
|
|
102
|
+
"MobileDisplayFormUrl": "",
|
|
103
|
+
"MobileEditFormUrl": "",
|
|
104
|
+
"MobileNewFormUrl": "",
|
|
105
|
+
"Name": "PnP Alert",
|
|
106
|
+
"NewFormClientSideComponentId": null,
|
|
107
|
+
"NewFormClientSideComponentProperties": "",
|
|
108
|
+
"NewFormTarget": 0,
|
|
109
|
+
"NewFormTemplateName": "ListForm",
|
|
110
|
+
"NewFormUrl": "",
|
|
111
|
+
"ReadOnly": false,
|
|
112
|
+
"SchemaXml": "<ContentType ID=\"0x01007926A45D687BA842B947286090B8F67D\" Name=\"PnP Alert\" Group=\"PnP Content Types\" Description=\"Create a new list item.\" Version=\"0\"><Folder TargetName=\"_cts/PnP Alert\" /><Fields><Field ID=\"{c042a256-787d-4a6f-8a8a-cf6ab767f12d}\" Name=\"ContentType\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"ContentType\" Group=\"_Hidden\" Type=\"Computed\" DisplayName=\"Content Type\" Sealed=\"TRUE\" Sortable=\"FALSE\" RenderXMLUsingPattern=\"TRUE\" PITarget=\"MicrosoftWindowsSharePointServices\" PIAttribute=\"ContentTypeID\" DelayActivateTemplateBinding=\"GROUP,SPSPERS,SITEPAGEPUBLISHING\" Customization=\"\"><FieldRefs><FieldRef ID=\"{03e45e84-1992-4d42-9116-26f756012634}\" Name=\"ContentTypeId\" /></FieldRefs><DisplayPattern><MapToContentType><Column Name=\"ContentTypeId\" /></MapToContentType></DisplayPattern></Field><Field ID=\"{fa564e0f-0c70-4ab9-b863-0177e6ddd247}\" Name=\"Title\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Title\" Group=\"_Hidden\" Type=\"Text\" DisplayName=\"Title\" Required=\"TRUE\" FromBaseType=\"TRUE\" DelayActivateTemplateBinding=\"GROUP,SPSPERS,SITEPAGEPUBLISHING\" Customization=\"\" ShowInNewForm=\"TRUE\" ShowInEditForm=\"TRUE\"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI=\"http://schemas.microsoft.com/sharepoint/v3/contenttype/forms\"><FormTemplates xmlns=\"http://schemas.microsoft.com/sharepoint/v3/contenttype/forms\"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>",
|
|
113
|
+
"Scope": "/sites/contoso-sales",
|
|
114
|
+
"Sealed": false,
|
|
115
|
+
"StringId": "0x01007926A45D687BA842B947286090B8F67D"
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
</TabItem>
|
|
120
|
+
<TabItem value="Text">
|
|
121
|
+
|
|
122
|
+
```text
|
|
123
|
+
ClientFormCustomFormatter :
|
|
124
|
+
Description : Create a new list item.
|
|
125
|
+
DisplayFormClientSideComponentId :
|
|
126
|
+
DisplayFormClientSideComponentProperties:
|
|
127
|
+
DisplayFormTarget : 0
|
|
128
|
+
DisplayFormTemplateName : ListForm
|
|
129
|
+
DisplayFormUrl :
|
|
130
|
+
DocumentTemplate :
|
|
131
|
+
DocumentTemplateUrl :
|
|
132
|
+
EditFormClientSideComponentId :
|
|
133
|
+
EditFormClientSideComponentProperties :
|
|
134
|
+
EditFormTarget : 0
|
|
135
|
+
EditFormTemplateName : ListForm
|
|
136
|
+
EditFormUrl :
|
|
137
|
+
Group : PnP Content Types
|
|
138
|
+
Hidden : false
|
|
139
|
+
Id : {"StringValue":"0x01007926A45D687BA842B947286090B8F67D"}
|
|
140
|
+
JSLink :
|
|
141
|
+
MobileDisplayFormUrl :
|
|
142
|
+
MobileEditFormUrl :
|
|
143
|
+
MobileNewFormUrl :
|
|
144
|
+
Name : PnP Alert
|
|
145
|
+
NewFormClientSideComponentId : null
|
|
146
|
+
NewFormClientSideComponentProperties :
|
|
147
|
+
NewFormTarget : 0
|
|
148
|
+
NewFormTemplateName : ListForm
|
|
149
|
+
NewFormUrl :
|
|
150
|
+
ReadOnly : false
|
|
151
|
+
SchemaXml : <ContentType ID="0x01007926A45D687BA842B947286090B8F67D" Name="PnP Alert" Group="PnP Content Types" Description="Create a new list item." Version="0"><Folder TargetName="_cts/PnP Alert" /><Fields><Field ID="{c042a256-787d-4a6f-8a8a-cf6ab767f12d}" Name="ContentType" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="ContentType" Group="_Hidden" Type="Computed" DisplayName="Content Type" Sealed="TRUE" Sortable="FALSE" RenderXMLUsingPattern="TRUE" PITarget="MicrosoftWindowsSharePointServices" PIAttribute="ContentTypeID" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization=""><FieldRefs><FieldRef ID="{03e45e84-1992-4d42-9116-26f756012634}" Name="ContentTypeId" /></FieldRefs><DisplayPattern><MapToContentType><Column Name="ContentTypeId" /></MapToContentType></DisplayPattern></Field><Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" Group="_Hidden" Type="Text" DisplayName="Title" Required="TRUE" FromBaseType="TRUE" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization="" ShowInNewForm="TRUE" ShowInEditForm="TRUE"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>
|
|
152
|
+
Scope : /sites/contoso-sales
|
|
153
|
+
Sealed : false
|
|
154
|
+
StringId : 0x01007926A45D687BA842B947286090B8F67D
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
</TabItem>
|
|
158
|
+
<TabItem value="CSV">
|
|
159
|
+
|
|
160
|
+
```csv
|
|
161
|
+
ClientFormCustomFormatter,Description,DisplayFormClientSideComponentId,DisplayFormClientSideComponentProperties,DisplayFormTarget,DisplayFormTemplateName,DisplayFormUrl,DocumentTemplate,DocumentTemplateUrl,EditFormClientSideComponentId,EditFormClientSideComponentProperties,EditFormTarget,EditFormTemplateName,EditFormUrl,Group,Hidden,JSLink,MobileDisplayFormUrl,MobileEditFormUrl,MobileNewFormUrl,Name,NewFormClientSideComponentProperties,NewFormTarget,NewFormTemplateName,NewFormUrl,ReadOnly,SchemaXml,Scope,Sealed,StringId
|
|
162
|
+
,Create a new list item.,,,0,ListForm,,,,,,0,ListForm,,PnP Content Types,,,,,,PnP Alert,,0,ListForm,,,"<ContentType ID=""0x01007926A45D687BA842B947286090B8F67D"" Name=""PnP Alert"" Group=""PnP Content Types"" Description=""Create a new list item."" Version=""0""><Folder TargetName=""_cts/PnP Alert"" /><Fields><Field ID=""{c042a256-787d-4a6f-8a8a-cf6ab767f12d}"" Name=""ContentType"" SourceID=""http://schemas.microsoft.com/sharepoint/v3"" StaticName=""ContentType"" Group=""_Hidden"" Type=""Computed"" DisplayName=""Content Type"" Sealed=""TRUE"" Sortable=""FALSE"" RenderXMLUsingPattern=""TRUE"" PITarget=""MicrosoftWindowsSharePointServices"" PIAttribute=""ContentTypeID"" DelayActivateTemplateBinding=""GROUP,SPSPERS,SITEPAGEPUBLISHING"" Customization=""""><FieldRefs><FieldRef ID=""{03e45e84-1992-4d42-9116-26f756012634}"" Name=""ContentTypeId"" /></FieldRefs><DisplayPattern><MapToContentType><Column Name=""ContentTypeId"" /></MapToContentType></DisplayPattern></Field><Field ID=""{fa564e0f-0c70-4ab9-b863-0177e6ddd247}"" Name=""Title"" SourceID=""http://schemas.microsoft.com/sharepoint/v3"" StaticName=""Title"" Group=""_Hidden"" Type=""Text"" DisplayName=""Title"" Required=""TRUE"" FromBaseType=""TRUE"" DelayActivateTemplateBinding=""GROUP,SPSPERS,SITEPAGEPUBLISHING"" Customization="""" ShowInNewForm=""TRUE"" ShowInEditForm=""TRUE""></Field></Fields><XmlDocuments><XmlDocument NamespaceURI=""http://schemas.microsoft.com/sharepoint/v3/contenttype/forms""><FormTemplates xmlns=""http://schemas.microsoft.com/sharepoint/v3/contenttype/forms""><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>",/sites/contoso-sales,,0x01007926A45D687BA842B947286090B8F67D
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
</TabItem>
|
|
166
|
+
<TabItem value="Markdown">
|
|
167
|
+
|
|
168
|
+
```md
|
|
169
|
+
# spo contenttype get --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --id "0x01007926A45D687BA842B947286090B8F67D"
|
|
170
|
+
|
|
171
|
+
Date: 10/2/2023
|
|
172
|
+
|
|
173
|
+
## PnP Alert ([object Object])
|
|
174
|
+
|
|
175
|
+
Property | Value
|
|
176
|
+
---------|-------
|
|
177
|
+
ClientFormCustomFormatter |
|
|
178
|
+
Description | Create a new list item.
|
|
179
|
+
DisplayFormClientSideComponentId |
|
|
180
|
+
DisplayFormClientSideComponentProperties |
|
|
181
|
+
DisplayFormTarget | 0
|
|
182
|
+
DisplayFormTemplateName | ListForm
|
|
183
|
+
DisplayFormUrl |
|
|
184
|
+
DocumentTemplate |
|
|
185
|
+
DocumentTemplateUrl |
|
|
186
|
+
EditFormClientSideComponentId |
|
|
187
|
+
EditFormClientSideComponentProperties |
|
|
188
|
+
EditFormTarget | 0
|
|
189
|
+
EditFormTemplateName | ListForm
|
|
190
|
+
EditFormUrl |
|
|
191
|
+
Group | PnP Content Types
|
|
192
|
+
Hidden | false
|
|
193
|
+
JSLink |
|
|
194
|
+
MobileDisplayFormUrl |
|
|
195
|
+
MobileEditFormUrl |
|
|
196
|
+
MobileNewFormUrl |
|
|
197
|
+
Name | PnP Alert
|
|
198
|
+
NewFormClientSideComponentProperties |
|
|
199
|
+
NewFormTarget | 0
|
|
200
|
+
NewFormTemplateName | ListForm
|
|
201
|
+
NewFormUrl |
|
|
202
|
+
ReadOnly | false
|
|
203
|
+
SchemaXml | <ContentType ID="0x01007926A45D687BA842B947286090B8F67D" Name="PnP Alert" Group="PnP Content Types" Description="Create a new list item." Version="0"><Folder TargetName="\_cts/PnP Alert" /><Fields><Field ID="{c042a256-787d-4a6f-8a8a-cf6ab767f12d}" Name="ContentType" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="ContentType" Group="\_Hidden" Type="Computed" DisplayName="Content Type" Sealed="TRUE" Sortable="FALSE" RenderXMLUsingPattern="TRUE" PITarget="MicrosoftWindowsSharePointServices" PIAttribute="ContentTypeID" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization=""><FieldRefs><FieldRef ID="{03e45e84-1992-4d42-9116-26f756012634}" Name="ContentTypeId" /></FieldRefs><DisplayPattern><MapToContentType><Column Name="ContentTypeId" /></MapToContentType></DisplayPattern></Field><Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" Group="\_Hidden" Type="Text" DisplayName="Title" Required="TRUE" FromBaseType="TRUE" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization="" ShowInNewForm="TRUE" ShowInEditForm="TRUE"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>
|
|
204
|
+
Scope | /sites/contoso-sales
|
|
205
|
+
Sealed | false
|
|
206
|
+
StringId | 0x01007926A45D687BA842B947286090B8F67D
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
</TabItem>
|
|
210
|
+
</Tabs>
|