@pnp/cli-microsoft365 8.0.0-beta.e6f9331 → 8.1.0-beta.32d2e69
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/.eslintrc.cjs +1 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +10 -18
- package/dist/Command.js +49 -2
- package/dist/chili/chili.js +0 -23
- package/dist/cli/cli.js +61 -101
- package/dist/m365/commands/login.js +44 -96
- package/dist/m365/commands/setup.js +0 -4
- package/dist/m365/connection/commands/connection-remove.js +6 -2
- package/dist/m365/connection/commands/connection-set.js +4 -1
- package/dist/m365/connection/commands/connection-use.js +25 -4
- package/dist/m365/entra/commands/m365group/m365group-set.js +66 -29
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +109 -32
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +159 -84
- package/dist/m365/entra/commands/multitenant/MultitenantOrganization.js +2 -0
- package/dist/m365/entra/commands/multitenant/multitenant-add.js +65 -0
- package/dist/m365/entra/commands/multitenant/multitenant-get.js +32 -0
- package/dist/m365/entra/commands/multitenant/multitenant-remove.js +118 -0
- package/dist/m365/entra/commands/multitenant/multitenant-set.js +72 -0
- package/dist/m365/entra/commands.js +4 -0
- package/dist/m365/external/commands/connection/connection-doctor.js +10 -24
- package/dist/m365/flow/commands/flow-get.js +1 -1
- package/dist/m365/flow/commands/flow-list.js +2 -1
- package/dist/m365/graph/commands/subscription/subscription-add.js +4 -2
- package/dist/m365/pa/commands/app/app-export.js +13 -7
- package/dist/m365/spe/ContainerTypeProperties.js +2 -0
- package/dist/m365/spe/commands/containertype/containertype-list.js +49 -0
- package/dist/m365/spe/commands.js +2 -1
- package/dist/m365/spfx/commands/project/base-project-command.js +36 -126
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +16 -21
- package/dist/m365/spo/commands/commandset/commandset-get.js +31 -17
- package/dist/m365/spo/commands/contenttype/contenttype-field-list.js +124 -0
- package/dist/m365/spo/commands/field/field-list.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +86 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +110 -0
- package/dist/m365/spo/commands/list/ListInstance.js +6 -1
- package/dist/m365/spo/commands/list/list-get.js +9 -3
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +46 -21
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +48 -46
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +2 -3
- package/dist/m365/spo/commands/page/page-text-add.js +2 -3
- package/dist/m365/spo/commands/spo-search.js +3 -4
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +19 -5
- package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +20 -6
- package/dist/m365/spo/commands.js +3 -0
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-get.js +119 -0
- package/dist/m365/teams/commands/message/message-remove.js +112 -0
- package/dist/m365/teams/commands.js +2 -0
- package/dist/m365/viva/commands/engage/engage-community-add.js +166 -0
- package/dist/m365/viva/commands.js +1 -0
- package/dist/utils/drive.js +61 -0
- package/dist/utils/formatting.js +30 -1
- package/dist/utils/spo.js +69 -6
- package/dist/utils/teams.js +49 -0
- package/dist/utils/zod.js +124 -0
- package/docs/docs/cmd/connection/connection-use.mdx +8 -2
- package/docs/docs/cmd/entra/m365group/m365group-set.mdx +37 -7
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +28 -10
- package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +35 -11
- package/docs/docs/cmd/entra/multitenant/multitenant-add.mdx +107 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-get.mdx +94 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-remove.mdx +58 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-set.mdx +53 -0
- package/docs/docs/cmd/external/connection/connection-doctor.mdx +9 -9
- package/docs/docs/cmd/flow/flow-get.mdx +149 -283
- package/docs/docs/cmd/graph/subscription/subscription-add.mdx +18 -0
- package/docs/docs/cmd/pa/app/app-export.mdx +15 -9
- package/docs/docs/cmd/planner/plan/plan-remove.mdx +1 -1
- package/docs/docs/cmd/spe/containertype/containertype-list.mdx +102 -0
- package/docs/docs/cmd/spo/app/app-uninstall.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +87 -38
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +22 -28
- package/docs/docs/cmd/spo/commandset/commandset-get.mdx +75 -24
- package/docs/docs/cmd/spo/commandset/commandset-list.mdx +26 -32
- package/docs/docs/cmd/spo/contenttype/contenttype-field-list.mdx +172 -0
- package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +3 -3
- package/docs/docs/cmd/spo/field/field-list.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +110 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +114 -0
- package/docs/docs/cmd/spo/list/list-get.mdx +6 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +15 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +15 -3
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +4 -4
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +9 -9
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +7 -7
- package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +79 -30
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +20 -19
- package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +84 -38
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +20 -19
- package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/teams/meeting/meeting-attendancereport-get.mdx +138 -0
- package/docs/docs/cmd/teams/meeting/meeting-list.mdx +7 -3
- package/docs/docs/cmd/teams/message/message-remove.mdx +63 -0
- package/docs/docs/cmd/viva/engage/engage-community-add.mdx +168 -0
- package/npm-shrinkwrap.json +987 -1326
- package/package.json +27 -23
|
@@ -29,6 +29,9 @@ m365 spo commandset get [options]
|
|
|
29
29
|
|
|
30
30
|
`-s, --scope [scope]`
|
|
31
31
|
: Scope of the ListView Command Set. Allowed values: `Site`, `Web`, `All`. Defaults to `All`.
|
|
32
|
+
|
|
33
|
+
`-p, --clientSideComponentProperties`
|
|
34
|
+
: Only output the client-side component properties.
|
|
32
35
|
```
|
|
33
36
|
|
|
34
37
|
<Global />
|
|
@@ -50,7 +53,7 @@ m365 spo commandset get --title "Some customizer" --webUrl https://contoso.share
|
|
|
50
53
|
Retrieves a ListView Command Set by id with scope 'Web'.
|
|
51
54
|
|
|
52
55
|
```sh
|
|
53
|
-
m365 spo commandset get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales
|
|
56
|
+
m365 spo commandset get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales --scope Web
|
|
54
57
|
```
|
|
55
58
|
|
|
56
59
|
Retrieves a ListView Command Set by clientSideComponentId with scope 'Site'.
|
|
@@ -59,23 +62,31 @@ Retrieves a ListView Command Set by clientSideComponentId with scope 'Site'.
|
|
|
59
62
|
m365 spo commandset get --clientSideComponentId c1cbd896-5140-428d-8b0c-4873be19f5ac --webUrl https://contoso.sharepoint.com/sites/sales --scope Site
|
|
60
63
|
```
|
|
61
64
|
|
|
65
|
+
Retrieves the client-side component properties of a ListView Command Set.
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
m365 spo commandset get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales --clientSideComponentProperties
|
|
69
|
+
```
|
|
70
|
+
|
|
62
71
|
## Response
|
|
63
72
|
|
|
73
|
+
### Standard response
|
|
74
|
+
|
|
64
75
|
<Tabs>
|
|
65
76
|
<TabItem value="JSON">
|
|
66
77
|
|
|
67
78
|
```json
|
|
68
79
|
{
|
|
69
|
-
"ClientSideComponentId": "
|
|
80
|
+
"ClientSideComponentId": "53dd6a38-1461-44e0-9bf0-14883316a316",
|
|
70
81
|
"ClientSideComponentProperties": "{\"sampleTextOne\":\"One item is selected in the list.\", \"sampleTextTwo\":\"This command is always visible.\"}",
|
|
71
82
|
"CommandUIExtension": null,
|
|
72
83
|
"Description": null,
|
|
73
84
|
"Group": null,
|
|
74
85
|
"HostProperties": "",
|
|
75
|
-
"Id": "
|
|
86
|
+
"Id": "bb26547d-c9b7-4ed1-b793-00cbe53388d6",
|
|
76
87
|
"ImageUrl": null,
|
|
77
88
|
"Location": "ClientSideExtension.ListViewCommandSet.CommandBar",
|
|
78
|
-
"Name": "{
|
|
89
|
+
"Name": "{bb26547d-c9b7-4ed1-b793-00cbe53388d6}",
|
|
79
90
|
"RegistrationId": "100",
|
|
80
91
|
"RegistrationType": 1,
|
|
81
92
|
"Rights": {
|
|
@@ -86,7 +97,7 @@ m365 spo commandset get --clientSideComponentId c1cbd896-5140-428d-8b0c-4873be19
|
|
|
86
97
|
"ScriptBlock": null,
|
|
87
98
|
"ScriptSrc": null,
|
|
88
99
|
"Sequence": 65536,
|
|
89
|
-
"Title": "
|
|
100
|
+
"Title": "HelloWorld",
|
|
90
101
|
"Url": null,
|
|
91
102
|
"VersionOfUserCustomAction": "1.0.1.0"
|
|
92
103
|
}
|
|
@@ -96,16 +107,16 @@ m365 spo commandset get --clientSideComponentId c1cbd896-5140-428d-8b0c-4873be19
|
|
|
96
107
|
<TabItem value="Text">
|
|
97
108
|
|
|
98
109
|
```text
|
|
99
|
-
ClientSideComponentId :
|
|
110
|
+
ClientSideComponentId : 53dd6a38-1461-44e0-9bf0-14883316a316
|
|
100
111
|
ClientSideComponentProperties: {"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}
|
|
101
112
|
CommandUIExtension : null
|
|
102
113
|
Description : null
|
|
103
114
|
Group : null
|
|
104
115
|
HostProperties :
|
|
105
|
-
Id :
|
|
116
|
+
Id : bb26547d-c9b7-4ed1-b793-00cbe53388d6
|
|
106
117
|
ImageUrl : null
|
|
107
118
|
Location : ClientSideExtension.ListViewCommandSet.CommandBar
|
|
108
|
-
Name : {
|
|
119
|
+
Name : {bb26547d-c9b7-4ed1-b793-00cbe53388d6}
|
|
109
120
|
RegistrationId : 100
|
|
110
121
|
RegistrationType : 1
|
|
111
122
|
Rights : {"High":"0","Low":"0"}
|
|
@@ -113,7 +124,7 @@ m365 spo commandset get --clientSideComponentId c1cbd896-5140-428d-8b0c-4873be19
|
|
|
113
124
|
ScriptBlock : null
|
|
114
125
|
ScriptSrc : null
|
|
115
126
|
Sequence : 65536
|
|
116
|
-
Title :
|
|
127
|
+
Title : HelloWorld
|
|
117
128
|
Url : null
|
|
118
129
|
VersionOfUserCustomAction : 1.0.1.0
|
|
119
130
|
```
|
|
@@ -122,40 +133,80 @@ m365 spo commandset get --clientSideComponentId c1cbd896-5140-428d-8b0c-4873be19
|
|
|
122
133
|
<TabItem value="CSV">
|
|
123
134
|
|
|
124
135
|
```csv
|
|
125
|
-
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,HostProperties,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,
|
|
126
|
-
|
|
136
|
+
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,HostProperties,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
|
|
137
|
+
53dd6a38-1461-44e0-9bf0-14883316a316,"{""sampleTextOne"":""One item is selected in the list."", ""sampleTextTwo"":""This command is always visible.""}",,,,,bb26547d-c9b7-4ed1-b793-00cbe53388d6,,ClientSideExtension.ListViewCommandSet.CommandBar,{bb26547d-c9b7-4ed1-b793-00cbe53388d6},100,1,3,,,65536,HelloWorld,,1.0.1.0
|
|
127
138
|
```
|
|
128
139
|
|
|
129
140
|
</TabItem>
|
|
130
141
|
<TabItem value="Markdown">
|
|
131
142
|
|
|
132
143
|
```md
|
|
133
|
-
# spo commandset get --webUrl "https://contoso.sharepoint.com/sites/sales" --id "
|
|
144
|
+
# spo commandset get --webUrl "https://contoso.sharepoint.com/sites/sales" --id "bb26547d-c9b7-4ed1-b793-00cbe53388d6"
|
|
134
145
|
|
|
135
|
-
Date:
|
|
146
|
+
Date: 16/05/2024
|
|
136
147
|
|
|
137
|
-
##
|
|
148
|
+
## HelloWorld (bb26547d-c9b7-4ed1-b793-00cbe53388d6)
|
|
138
149
|
|
|
139
150
|
Property | Value
|
|
140
151
|
---------|-------
|
|
141
|
-
ClientSideComponentId |
|
|
142
|
-
|
|
143
|
-
Description | null
|
|
144
|
-
Group | null
|
|
152
|
+
ClientSideComponentId | 53dd6a38-1461-44e0-9bf0-14883316a316
|
|
153
|
+
ClientSideComponentProperties | {"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}
|
|
145
154
|
HostProperties |
|
|
146
|
-
Id |
|
|
147
|
-
ImageUrl | null
|
|
155
|
+
Id | bb26547d-c9b7-4ed1-b793-00cbe53388d6
|
|
148
156
|
Location | ClientSideExtension.ListViewCommandSet.CommandBar
|
|
157
|
+
Name | {bb26547d-c9b7-4ed1-b793-00cbe53388d6}
|
|
149
158
|
RegistrationId | 100
|
|
150
159
|
RegistrationType | 1
|
|
151
160
|
Scope | 3
|
|
152
|
-
ScriptBlock | null
|
|
153
|
-
ScriptSrc | null
|
|
154
161
|
Sequence | 65536
|
|
155
|
-
Title |
|
|
156
|
-
Url | null
|
|
162
|
+
Title | HelloWorld
|
|
157
163
|
VersionOfUserCustomAction | 1.0.1.0
|
|
158
164
|
```
|
|
159
165
|
|
|
160
166
|
</TabItem>
|
|
161
167
|
</Tabs>
|
|
168
|
+
|
|
169
|
+
### `clientSideComponentProperties` response
|
|
170
|
+
|
|
171
|
+
<Tabs>
|
|
172
|
+
<TabItem value="JSON">
|
|
173
|
+
|
|
174
|
+
```json
|
|
175
|
+
{
|
|
176
|
+
"sampleTextOne": "One item is selected in the list.",
|
|
177
|
+
"sampleTextTwo": "This command is always visible."
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
</TabItem>
|
|
182
|
+
<TabItem value="Text">
|
|
183
|
+
|
|
184
|
+
```txt
|
|
185
|
+
sampleTextOne: One item is selected in the list.
|
|
186
|
+
sampleTextTwo: This command is always visible.
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
</TabItem>
|
|
190
|
+
<TabItem value="CSV">
|
|
191
|
+
|
|
192
|
+
```csv
|
|
193
|
+
sampleTextOne,sampleTextTwo
|
|
194
|
+
One item is selected in the list.,This command is always visible.
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
</TabItem>
|
|
198
|
+
<TabItem value="Markdown">
|
|
199
|
+
|
|
200
|
+
```md
|
|
201
|
+
# spo commandset get --webUrl "https://contoso.sharepoint.com/sites/sales" --id "9a0674de-2f3d-4a26-ba79-62b460ddd327" --clientSideComponentProperties "true"
|
|
202
|
+
|
|
203
|
+
Date: 15/05/2024
|
|
204
|
+
|
|
205
|
+
Property | Value
|
|
206
|
+
---------|-------
|
|
207
|
+
sampleTextOne | One item is selected in the list.
|
|
208
|
+
sampleTextTwo | This command is always visible.
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
</TabItem>
|
|
212
|
+
</Tabs>
|
|
@@ -44,29 +44,29 @@ m365 spo commandset list --webUrl https://contoso.sharepoint.com/sites/sales
|
|
|
44
44
|
```json
|
|
45
45
|
[
|
|
46
46
|
{
|
|
47
|
-
"ClientSideComponentId": "
|
|
48
|
-
"ClientSideComponentProperties": "",
|
|
47
|
+
"ClientSideComponentId": "53dd6a38-1461-44e0-9bf0-14883316a316",
|
|
48
|
+
"ClientSideComponentProperties": "{\"sampleTextOne\":\"One item is selected in the list.\", \"sampleTextTwo\":\"This command is always visible.\"}",
|
|
49
49
|
"CommandUIExtension": null,
|
|
50
50
|
"Description": null,
|
|
51
51
|
"Group": null,
|
|
52
52
|
"HostProperties": "",
|
|
53
|
-
"Id": "
|
|
53
|
+
"Id": "bb26547d-c9b7-4ed1-b793-00cbe53388d6",
|
|
54
54
|
"ImageUrl": null,
|
|
55
55
|
"Location": "ClientSideExtension.ListViewCommandSet.CommandBar",
|
|
56
|
-
"Name": "{
|
|
56
|
+
"Name": "{bb26547d-c9b7-4ed1-b793-00cbe53388d6}",
|
|
57
57
|
"RegistrationId": "100",
|
|
58
|
-
"RegistrationType":
|
|
58
|
+
"RegistrationType": 1,
|
|
59
59
|
"Rights": {
|
|
60
60
|
"High": 0,
|
|
61
61
|
"Low": 0
|
|
62
62
|
},
|
|
63
|
-
"Scope":
|
|
63
|
+
"Scope": 3,
|
|
64
64
|
"ScriptBlock": null,
|
|
65
65
|
"ScriptSrc": null,
|
|
66
|
-
"Sequence":
|
|
67
|
-
"Title": "
|
|
66
|
+
"Sequence": 65536,
|
|
67
|
+
"Title": "HelloWorld",
|
|
68
68
|
"Url": null,
|
|
69
|
-
"VersionOfUserCustomAction": "
|
|
69
|
+
"VersionOfUserCustomAction": "1.0.1.0"
|
|
70
70
|
}
|
|
71
71
|
]
|
|
72
72
|
```
|
|
@@ -75,49 +75,43 @@ m365 spo commandset list --webUrl https://contoso.sharepoint.com/sites/sales
|
|
|
75
75
|
<TabItem value="Text">
|
|
76
76
|
|
|
77
77
|
```text
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
Id Location Name Scope
|
|
79
|
+
------------------------------------ ------------------------------------------------- -------------------------------------- -----
|
|
80
|
+
bb26547d-c9b7-4ed1-b793-00cbe53388d6 ClientSideExtension.ListViewCommandSet.CommandBar {bb26547d-c9b7-4ed1-b793-00cbe53388d6} 3
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
</TabItem>
|
|
84
84
|
<TabItem value="CSV">
|
|
85
85
|
|
|
86
86
|
```csv
|
|
87
|
-
|
|
88
|
-
{
|
|
87
|
+
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,HostProperties,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
|
|
88
|
+
53dd6a38-1461-44e0-9bf0-14883316a316,"{""sampleTextOne"":""One item is selected in the list."", ""sampleTextTwo"":""This command is always visible.""}",,,,,bb26547d-c9b7-4ed1-b793-00cbe53388d6,,ClientSideExtension.ListViewCommandSet.CommandBar,{bb26547d-c9b7-4ed1-b793-00cbe53388d6},100,1,3,,,65536,HelloWorld,,1.0.1.0
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
</TabItem>
|
|
92
92
|
<TabItem value="Markdown">
|
|
93
93
|
|
|
94
94
|
```md
|
|
95
|
-
# spo commandset list --webUrl "https://
|
|
95
|
+
# spo commandset list --webUrl "https://contoso.sharepoint.com/sites/Marketing"
|
|
96
96
|
|
|
97
|
-
Date:
|
|
97
|
+
Date: 16/05/2024
|
|
98
98
|
|
|
99
|
-
##
|
|
99
|
+
## HelloWorld (bb26547d-c9b7-4ed1-b793-00cbe53388d6)
|
|
100
100
|
|
|
101
101
|
Property | Value
|
|
102
102
|
---------|-------
|
|
103
|
-
ClientSideComponentId |
|
|
104
|
-
ClientSideComponentProperties |
|
|
105
|
-
CommandUIExtension | null
|
|
106
|
-
Description | null
|
|
107
|
-
Group | null
|
|
103
|
+
ClientSideComponentId | 53dd6a38-1461-44e0-9bf0-14883316a316
|
|
104
|
+
ClientSideComponentProperties | {"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}
|
|
108
105
|
HostProperties |
|
|
109
|
-
Id |
|
|
110
|
-
ImageUrl | null
|
|
106
|
+
Id | bb26547d-c9b7-4ed1-b793-00cbe53388d6
|
|
111
107
|
Location | ClientSideExtension.ListViewCommandSet.CommandBar
|
|
108
|
+
Name | {bb26547d-c9b7-4ed1-b793-00cbe53388d6}
|
|
112
109
|
RegistrationId | 100
|
|
113
|
-
RegistrationType |
|
|
114
|
-
Scope |
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
Title | test
|
|
119
|
-
Url | null
|
|
120
|
-
VersionOfUserCustomAction | 16.0.1.0
|
|
110
|
+
RegistrationType | 1
|
|
111
|
+
Scope | 3
|
|
112
|
+
Sequence | 65536
|
|
113
|
+
Title | HelloWorld
|
|
114
|
+
VersionOfUserCustomAction | 1.0.1.0
|
|
121
115
|
```
|
|
122
116
|
|
|
123
117
|
</TabItem>
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo contenttype field list
|
|
6
|
+
|
|
7
|
+
Lists fields for a given site or list content type
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo contenttype field list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --webUrl <webUrl>`
|
|
19
|
+
: Absolute URL of the site where the content type is located.
|
|
20
|
+
|
|
21
|
+
`-i, --contentTypeId [contentTypeId]`
|
|
22
|
+
: The ID of the content type for which to list fields. Specify either `contentTypeId` or `contentTypeName`.
|
|
23
|
+
|
|
24
|
+
`-n, --contentTypeName [contentTypeName]`
|
|
25
|
+
: The name of the content type for which to list fields. Specify either `contentTypeId` or `contentTypeName`.
|
|
26
|
+
|
|
27
|
+
`-l, --listTitle [listTitle]`
|
|
28
|
+
: Optional title of the list where the content type is located. Specify either `listTitle`, `listId` or `listUrl`.
|
|
29
|
+
|
|
30
|
+
`--listId [listId]`
|
|
31
|
+
: Optional ID of the list where the content type is located. Specify either `listTitle`, `listId` or `listUrl`.
|
|
32
|
+
|
|
33
|
+
`--listUrl [listUrl]`
|
|
34
|
+
: Optional server- or web-relative URL of the list where the content type is located. Specify either `listTitle`, `listId` or `listUrl`.
|
|
35
|
+
|
|
36
|
+
`-p, --properties [properties]`
|
|
37
|
+
: Comma-separated list of properties to retrieve. Will retrieve all properties if not specified.
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
<Global />
|
|
41
|
+
|
|
42
|
+
## Examples
|
|
43
|
+
|
|
44
|
+
Retrieves fields for the specified site content type.
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo contenttype field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --contentTypeId "0x01"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Retrieves fields for the specified list content type in the Documents library.
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 spo contenttype field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --contentTypeName "Document" --listTitle "Documents"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Response
|
|
57
|
+
|
|
58
|
+
<Tabs>
|
|
59
|
+
<TabItem value="JSON">
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
[
|
|
63
|
+
{
|
|
64
|
+
"AutoIndexed": false,
|
|
65
|
+
"CanBeDeleted": false,
|
|
66
|
+
"ClientSideComponentId": "00000000-0000-0000-0000-000000000000",
|
|
67
|
+
"ClientSideComponentProperties": null,
|
|
68
|
+
"ClientValidationFormula": null,
|
|
69
|
+
"ClientValidationMessage": null,
|
|
70
|
+
"CustomFormatter": null,
|
|
71
|
+
"DefaultFormula": null,
|
|
72
|
+
"DefaultValue": null,
|
|
73
|
+
"Description": "",
|
|
74
|
+
"Direction": "none",
|
|
75
|
+
"EnforceUniqueValues": false,
|
|
76
|
+
"EntityPropertyName": "Title",
|
|
77
|
+
"Filterable": true,
|
|
78
|
+
"FromBaseType": true,
|
|
79
|
+
"Group": "_Hidden",
|
|
80
|
+
"Hidden": false,
|
|
81
|
+
"Id": "fa564e0f-0c70-4ab9-b863-0177e6ddd247",
|
|
82
|
+
"Indexed": false,
|
|
83
|
+
"IndexStatus": 0,
|
|
84
|
+
"InternalName": "Title",
|
|
85
|
+
"IsModern": false,
|
|
86
|
+
"JSLink": "clienttemplates.js",
|
|
87
|
+
"PinnedToFiltersPane": false,
|
|
88
|
+
"ReadOnlyField": false,
|
|
89
|
+
"Required": true,
|
|
90
|
+
"SchemaXml": "<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>",
|
|
91
|
+
"Scope": "/",
|
|
92
|
+
"Sealed": false,
|
|
93
|
+
"ShowInFiltersPane": 0,
|
|
94
|
+
"Sortable": true,
|
|
95
|
+
"StaticName": "Title",
|
|
96
|
+
"Title": "Title",
|
|
97
|
+
"FieldTypeKind": 2,
|
|
98
|
+
"TypeAsString": "Text",
|
|
99
|
+
"TypeDisplayName": "Single line of text",
|
|
100
|
+
"TypeShortDescription": "Single line of text",
|
|
101
|
+
"ValidationFormula": null,
|
|
102
|
+
"ValidationMessage": null,
|
|
103
|
+
"MaxLength": 255
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
</TabItem>
|
|
109
|
+
<TabItem value="Text">
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
Id Title InternalName Hidden
|
|
113
|
+
------------------------------------ ------ ------------ ------
|
|
114
|
+
5ee2dd25-d941-455a-9bdb-7f2c54aed11b Title Title false
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
</TabItem>
|
|
118
|
+
<TabItem value="CSV">
|
|
119
|
+
|
|
120
|
+
```csv
|
|
121
|
+
AutoIndexed,CanBeDeleted,ClientSideComponentId,ClientSideComponentProperties,ClientValidationFormula,ClientValidationMessage,CustomFormatter,DefaultFormula,DefaultValue,Description,Direction,EnforceUniqueValues,EntityPropertyName,Filterable,FromBaseType,Group,Hidden,Id,Indexed,IndexStatus,InternalName,IsModern,JSLink,PinnedToFiltersPane,ReadOnlyField,Required,SchemaXml,Scope,Sealed,ShowInFiltersPane,Sortable,StaticName,Title,FieldTypeKind,TypeAsString,TypeDisplayName,TypeShortDescription,ValidationFormula,ValidationMessage,EnableLookup
|
|
122
|
+
,,00000000-0000-0000-0000-000000000000,,,,,,,,none,,ContentType,1,,_Hidden,,c042a256-787d-4a6f-8a8a-cf6ab767f12d,,0,ContentType,,,,,,"<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>",/,1,0,,ContentType,Content Type,12,Computed,Computed,Computed,,,
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
</TabItem>
|
|
126
|
+
<TabItem value="Markdown">
|
|
127
|
+
|
|
128
|
+
```md
|
|
129
|
+
# spo contenttype field list --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --contentTypeId "0x01"
|
|
130
|
+
|
|
131
|
+
Date: 10/04/2024
|
|
132
|
+
|
|
133
|
+
## Title (fa564e0f-0c70-4ab9-b863-0177e6ddd247)
|
|
134
|
+
|
|
135
|
+
Property | Value
|
|
136
|
+
---------|-------
|
|
137
|
+
AutoIndexed | false
|
|
138
|
+
CanBeDeleted | false
|
|
139
|
+
ClientSideComponentId | 00000000-0000-0000-0000-000000000000
|
|
140
|
+
Description |
|
|
141
|
+
Direction | none
|
|
142
|
+
EnforceUniqueValues | false
|
|
143
|
+
EntityPropertyName | Title
|
|
144
|
+
Filterable | true
|
|
145
|
+
FromBaseType | true
|
|
146
|
+
Group | \_Hidden
|
|
147
|
+
Hidden | false
|
|
148
|
+
Id | fa564e0f-0c70-4ab9-b863-0177e6ddd247
|
|
149
|
+
Indexed | false
|
|
150
|
+
IndexStatus | 0
|
|
151
|
+
InternalName | Title
|
|
152
|
+
IsModern | false
|
|
153
|
+
JSLink | clienttemplates.js
|
|
154
|
+
PinnedToFiltersPane | false
|
|
155
|
+
ReadOnlyField | false
|
|
156
|
+
Required | true
|
|
157
|
+
SchemaXml | <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>
|
|
158
|
+
Scope | /
|
|
159
|
+
Sealed | false
|
|
160
|
+
ShowInFiltersPane | 0
|
|
161
|
+
Sortable | true
|
|
162
|
+
StaticName | Title
|
|
163
|
+
Title | Title
|
|
164
|
+
FieldTypeKind | 2
|
|
165
|
+
TypeAsString | Text
|
|
166
|
+
TypeDisplayName | Single line of text
|
|
167
|
+
TypeShortDescription | Single line of text
|
|
168
|
+
MaxLength | 255
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
</TabItem>
|
|
172
|
+
</Tabs>
|
|
@@ -88,9 +88,9 @@ m365 spo contenttype list --webUrl "https://contoso.sharepoint.com/sites/contoso
|
|
|
88
88
|
<TabItem value="Text">
|
|
89
89
|
|
|
90
90
|
```text
|
|
91
|
-
StringId
|
|
92
|
-
|
|
93
|
-
0x01007926A45D687BA842B947286090B8F67D
|
|
91
|
+
StringId Name Hidden ReadOnly Sealed
|
|
92
|
+
-------------------------------------- --------- ------ -------- ------
|
|
93
|
+
0x01007926A45D687BA842B947286090B8F67D PnP Alert false false false
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
</TabItem>
|
|
@@ -116,9 +116,9 @@ m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales
|
|
|
116
116
|
<TabItem value="Text">
|
|
117
117
|
|
|
118
118
|
```text
|
|
119
|
-
Id Title
|
|
120
|
-
------------------------------------
|
|
121
|
-
5ee2dd25-d941-455a-9bdb-7f2c54aed11b Start date-time
|
|
119
|
+
Id Title InternalName Hidden
|
|
120
|
+
------------------------------------ --------------- --------------------- ------
|
|
121
|
+
5ee2dd25-d941-455a-9bdb-7f2c54aed11b Start date-time PnPAlertStartDateTime false
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
</TabItem>
|
|
@@ -33,7 +33,7 @@ m365 spo file retentionlabel ensure [options]
|
|
|
33
33
|
|
|
34
34
|
## Remarks
|
|
35
35
|
|
|
36
|
-
You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a
|
|
36
|
+
You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a list item.
|
|
37
37
|
|
|
38
38
|
The `--assetId` option has to do with event-based retention. Event-based retention is about starting a retention period when a specific event occurs, instead of the moment a document was labeled or created.
|
|
39
39
|
|
|
@@ -19,7 +19,7 @@ m365 spo file roleassignment add [options]
|
|
|
19
19
|
`--fileUrl [fileUrl]`
|
|
20
20
|
: The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`-i, --fileId [fileId]`
|
|
23
23
|
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
|
|
24
24
|
|
|
25
25
|
`--principalId [principalId]`
|
|
@@ -29,7 +29,7 @@ m365 spo file roleassignment add [options]
|
|
|
29
29
|
: The upn/email of user to assign role to. Specify either `upn`, `groupName`, or `principalId` but not multiple.
|
|
30
30
|
|
|
31
31
|
`--groupName [groupName]`
|
|
32
|
-
: The group name of
|
|
32
|
+
: The group name of the SharePoint group Specify either `upn`, `groupName`, or `principalId` but not multiple.
|
|
33
33
|
|
|
34
34
|
`--roleDefinitionId [roleDefinitionId]`
|
|
35
35
|
: ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
@@ -29,7 +29,7 @@ m365 spo file roleassignment remove [options]
|
|
|
29
29
|
: The upn/email of the user. Specify either `upn`, `groupName`, or `principalId` but not multiple.
|
|
30
30
|
|
|
31
31
|
`--groupName [groupName]`
|
|
32
|
-
: The group name of
|
|
32
|
+
: The group name of the SharePoint group Specify either `upn`, `groupName`, or `principalId` but not multiple.
|
|
33
33
|
|
|
34
34
|
`-f, --force`
|
|
35
35
|
: Don't prompt for confirmation.
|
|
@@ -19,7 +19,7 @@ m365 spo file roleinheritance break [options]
|
|
|
19
19
|
`--fileUrl [fileUrl]`
|
|
20
20
|
: The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`-i, --fileId [fileId]`
|
|
23
23
|
: The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
|
|
24
24
|
|
|
25
25
|
`-c, --clearExistingPermissions`
|
|
@@ -19,7 +19,7 @@ m365 spo file roleinheritance reset [options]
|
|
|
19
19
|
`--fileUrl [fileUrl]`
|
|
20
20
|
: The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`-i, --fileId [fileId]`
|
|
23
23
|
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
|
|
24
24
|
|
|
25
25
|
`-f, --force`
|
|
@@ -19,7 +19,7 @@ m365 spo folder retentionlabel ensure [options]
|
|
|
19
19
|
`--folderUrl [folderUrl]`
|
|
20
20
|
: The server- or site-relative decoded URL of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`-i, --folderId [folderId]`
|
|
23
23
|
: The UniqueId (GUID) of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
|
|
24
24
|
|
|
25
25
|
`--name <name>`
|
|
@@ -30,7 +30,7 @@ m365 spo folder retentionlabel ensure [options]
|
|
|
30
30
|
|
|
31
31
|
## Remarks
|
|
32
32
|
|
|
33
|
-
You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a
|
|
33
|
+
You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a list item.
|
|
34
34
|
|
|
35
35
|
## Examples
|
|
36
36
|
|