@pnp/cli-microsoft365 6.1.0-beta.f4d612f → 6.1.0-beta.f818fbb
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/dist/m365/pp/commands/dataverse/dataverse-table-row-remove.js +133 -0
- package/dist/m365/pp/commands.js +1 -0
- package/dist/m365/spo/commands/list/{list-label-get.js → list-retentionlabel-get.js} +19 -15
- package/dist/m365/spo/commands/list/{list-label-set.js → list-retentionlabel-set.js} +19 -15
- package/dist/m365/spo/commands/page/clientsidepages.js +3 -3
- package/dist/m365/spo/commands/web/web-retentionlabel-list.js +63 -0
- package/dist/m365/spo/commands.js +3 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.md +61 -0
- package/docs/docs/cmd/spo/list/{list-label-get.md → list-retentionlabel-get.md} +17 -11
- package/docs/docs/cmd/spo/list/list-retentionlabel-set.md +65 -0
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.md +9 -5
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +42 -0
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +25 -3
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +22 -0
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.md +6 -2
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.md +5 -1
- package/docs/docs/cmd/spo/page/page-add.md +13 -9
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +6 -2
- package/docs/docs/cmd/spo/page/page-column-get.md +68 -5
- package/docs/docs/cmd/spo/page/page-column-list.md +36 -4
- package/docs/docs/cmd/spo/page/page-control-get.md +70 -3
- package/docs/docs/cmd/spo/page/page-control-list.md +69 -3
- package/docs/docs/cmd/spo/page/page-control-set.md +11 -7
- package/docs/docs/cmd/spo/page/page-copy.md +65 -4
- package/docs/docs/cmd/spo/page/page-get.md +100 -4
- package/docs/docs/cmd/spo/page/page-header-set.md +17 -13
- package/docs/docs/cmd/spo/page/page-list.md +122 -1
- package/docs/docs/cmd/spo/page/page-remove.md +9 -5
- package/docs/docs/cmd/spo/page/page-section-add.md +10 -6
- package/docs/docs/cmd/spo/page/page-section-get.md +36 -4
- package/docs/docs/cmd/spo/page/page-section-list.md +38 -3
- package/docs/docs/cmd/spo/page/page-set.md +10 -10
- package/docs/docs/cmd/spo/page/page-template-list.md +58 -1
- package/docs/docs/cmd/spo/page/page-text-add.md +9 -5
- package/docs/docs/cmd/spo/propertybag/propertybag-get.md +28 -8
- package/docs/docs/cmd/spo/propertybag/propertybag-list.md +35 -7
- package/docs/docs/cmd/spo/propertybag/propertybag-remove.md +13 -9
- package/docs/docs/cmd/spo/propertybag/propertybag-set.md +13 -5
- package/docs/docs/cmd/spo/report/report-activityfilecounts.md +34 -2
- package/docs/docs/cmd/spo/report/report-activitypages.md +31 -2
- package/docs/docs/cmd/spo/report/report-activityusercounts.md +35 -2
- package/docs/docs/cmd/spo/report/report-activityuserdetail.md +40 -3
- package/docs/docs/cmd/spo/report/report-siteusagedetail.md +43 -3
- package/docs/docs/cmd/spo/report/report-siteusagefilecounts.md +33 -2
- package/docs/docs/cmd/spo/report/report-siteusagepages.md +32 -2
- package/docs/docs/cmd/spo/report/report-siteusagesitecounts.md +33 -2
- package/docs/docs/cmd/spo/report/report-siteusagestorage.md +32 -2
- package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +10 -6
- package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +80 -2
- package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +76 -2
- package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.md +9 -5
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +39 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +32 -0
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +6 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +14 -74
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +6 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +30 -0
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +36 -2
- package/docs/docs/cmd/spo/web/web-retentionlabel-list.md +74 -0
- package/package.json +1 -1
- package/docs/docs/cmd/spo/list/list-label-set.md +0 -55
|
@@ -22,3 +22,45 @@ List all libraries that are assigned as asset library
|
|
|
22
22
|
```sh
|
|
23
23
|
m365 spo orgassetslibrary list
|
|
24
24
|
```
|
|
25
|
+
|
|
26
|
+
## Response
|
|
27
|
+
|
|
28
|
+
### Standard response
|
|
29
|
+
|
|
30
|
+
=== "JSON"
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"Url": "/",
|
|
35
|
+
"Libraries": [
|
|
36
|
+
{
|
|
37
|
+
"DisplayName": "Site Assets",
|
|
38
|
+
"LibraryUrl": "SiteAssets",
|
|
39
|
+
"ListId": "/Guid(0a327c3f-ba82-4b19-bfa1-628405539420)/",
|
|
40
|
+
"ThumbnailUrl": null
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
=== "Text"
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
Libraries: [{"DisplayName":"Site Assets","LibraryUrl":"SiteAssets","ListId":"/Guid(0a327c3f-ba82-4b19-bfa1-628405539420)/","ThumbnailUrl":null}]
|
|
50
|
+
Url : /
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
=== "CSV"
|
|
54
|
+
|
|
55
|
+
```csv
|
|
56
|
+
Url,Libraries
|
|
57
|
+
/,"[{""DisplayName"":""Site Assets"",""LibraryUrl"":""SiteAssets"",""ListId"":""/Guid(0a327c3f-ba82-4b19-bfa1-628405539420)/"",""ThumbnailUrl"":null}]"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Response when no library is assigned as asset library
|
|
61
|
+
|
|
62
|
+
=== "Text"
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
No libraries in Organization Assets
|
|
66
|
+
```
|
|
@@ -11,10 +11,10 @@ m365 spo orgassetslibrary remove [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`--libraryUrl <libraryUrl>`
|
|
14
|
-
: The server relative URL of the library to be removed as a central location for organization assets
|
|
14
|
+
: The server relative URL of the library to be removed as a central location for organization assets.
|
|
15
15
|
|
|
16
16
|
`--confirm`
|
|
17
|
-
: Don't prompt for confirming removing the organization asset library
|
|
17
|
+
: Don't prompt for confirming removing the organization asset library.
|
|
18
18
|
|
|
19
19
|
--8<-- "docs/cmd/_global.md"
|
|
20
20
|
|
|
@@ -23,8 +23,30 @@ m365 spo orgassetslibrary remove [options]
|
|
|
23
23
|
|
|
24
24
|
## Examples
|
|
25
25
|
|
|
26
|
-
Removes organization assets library without confirmation
|
|
26
|
+
Removes organization assets library without prompting for confirmation
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
29
|
m365 spo orgassetslibrary remove --libraryUrl "/sites/branding/assets" --confirm
|
|
30
30
|
```
|
|
31
|
+
|
|
32
|
+
## Response
|
|
33
|
+
|
|
34
|
+
=== "JSON"
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"IsNull": false
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
=== "Text"
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
IsNull: false
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
=== "CSV"
|
|
49
|
+
|
|
50
|
+
```csv
|
|
51
|
+
IsNull
|
|
52
|
+
```
|
|
@@ -22,3 +22,25 @@ List all organizational news sites
|
|
|
22
22
|
```sh
|
|
23
23
|
m365 spo orgnewssite list
|
|
24
24
|
```
|
|
25
|
+
|
|
26
|
+
## Response
|
|
27
|
+
|
|
28
|
+
=== "JSON"
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
[
|
|
32
|
+
"https://contoso.sharepoint.com/sites/contosoNews"
|
|
33
|
+
]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
=== "Text"
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
https://contoso.sharepoint.com/sites/contosoNews
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
=== "CSV"
|
|
43
|
+
|
|
44
|
+
```csv
|
|
45
|
+
https://contoso.sharepoint.com/sites/contosoNews
|
|
46
|
+
```
|
|
@@ -11,10 +11,10 @@ m365 spo orgnewssite remove [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --url <url>`
|
|
14
|
-
: Absolute URL of the site to remove
|
|
14
|
+
: Absolute URL of the site to remove.
|
|
15
15
|
|
|
16
16
|
`--confirm`
|
|
17
|
-
: Don't prompt for confirmation
|
|
17
|
+
: Don't prompt for confirmation.
|
|
18
18
|
|
|
19
19
|
--8<-- "docs/cmd/_global.md"
|
|
20
20
|
|
|
@@ -34,3 +34,7 @@ Remove a site from the list of organizational news sites, without prompting for
|
|
|
34
34
|
```sh
|
|
35
35
|
m365 spo orgnewssite remove --url https://contoso.sharepoint.com/sites/site1 --confirm
|
|
36
36
|
```
|
|
37
|
+
|
|
38
|
+
## Response
|
|
39
|
+
|
|
40
|
+
The command won't return a response on success.
|
|
@@ -11,7 +11,7 @@ m365 spo orgnewssite set [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --url <url>`
|
|
14
|
-
: The URL of the site to mark as an organizational news site
|
|
14
|
+
: The URL of the site to mark as an organizational news site.
|
|
15
15
|
|
|
16
16
|
--8<-- "docs/cmd/_global.md"
|
|
17
17
|
|
|
@@ -29,3 +29,7 @@ Set a site as an organizational news site
|
|
|
29
29
|
```sh
|
|
30
30
|
m365 spo orgnewssite set --url https://contoso.sharepoint.com/sites/site1
|
|
31
31
|
```
|
|
32
|
+
|
|
33
|
+
## Response
|
|
34
|
+
|
|
35
|
+
The command won't return a response on success.
|
|
@@ -11,31 +11,31 @@ m365 spo page add [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-n, --name <name>`
|
|
14
|
-
: Name of the page to create
|
|
14
|
+
: Name of the page to create.
|
|
15
15
|
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: URL of the site where the page should be created
|
|
17
|
+
: URL of the site where the page should be created.
|
|
18
18
|
|
|
19
19
|
`-t, --title [title]`
|
|
20
|
-
: Title of the page to create. If not specified, will use the page name as its title
|
|
20
|
+
: Title of the page to create. If not specified, will use the page name as its title.
|
|
21
21
|
|
|
22
22
|
`-l, --layoutType [layoutType]`
|
|
23
|
-
: Layout of the page. Allowed values `Article`, `Home`, `SingleWebPartAppPage`, `RepostPage`, `HeaderlessSearchResults`, `Spaces`, `Topic`. Default `Article
|
|
23
|
+
: Layout of the page. Allowed values `Article`, `Home`, `SingleWebPartAppPage`, `RepostPage`, `HeaderlessSearchResults`, `Spaces`, `Topic`. Default `Article`.
|
|
24
24
|
|
|
25
25
|
`-p, --promoteAs [promoteAs]`
|
|
26
|
-
: Create the page for a specific purpose. Allowed values `HomePage`, `NewsPage`, `Template
|
|
26
|
+
: Create the page for a specific purpose. Allowed values `HomePage`, `NewsPage`, `Template`.
|
|
27
27
|
|
|
28
28
|
`--commentsEnabled`
|
|
29
|
-
: Set to enable comments on the page
|
|
29
|
+
: Set to enable comments on the page.
|
|
30
30
|
|
|
31
31
|
`--publish`
|
|
32
|
-
: Set to publish the page
|
|
32
|
+
: Set to publish the page.
|
|
33
33
|
|
|
34
34
|
`--publishMessage [publishMessage]`
|
|
35
|
-
: Message to set when publishing the page
|
|
35
|
+
: Message to set when publishing the page.
|
|
36
36
|
|
|
37
37
|
`--description [description]`
|
|
38
|
-
: The description to set for the page
|
|
38
|
+
: The description to set for the page.
|
|
39
39
|
|
|
40
40
|
--8<-- "docs/cmd/_global.md"
|
|
41
41
|
|
|
@@ -100,3 +100,7 @@ Create new article page with description
|
|
|
100
100
|
```sh
|
|
101
101
|
m365 spo page add --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --description "Description to add for the page"
|
|
102
102
|
```
|
|
103
|
+
|
|
104
|
+
## Response
|
|
105
|
+
|
|
106
|
+
The command won't return a response on success.
|
|
@@ -23,10 +23,10 @@ m365 spo page clientsidewebpart add [options]
|
|
|
23
23
|
: ID of the custom web part to add. Specify either `standardWebPart` or `webPartId` but not both.
|
|
24
24
|
|
|
25
25
|
`--webPartProperties [webPartProperties]`
|
|
26
|
-
: JSON string with web part properties to set on the web part. Specify `webPartProperties` or `webPartData` but not both.
|
|
26
|
+
: JSON string with web part properties to set on the web part. Specify either `webPartProperties` or `webPartData` but not both.
|
|
27
27
|
|
|
28
28
|
`--webPartData [webPartData]`
|
|
29
|
-
: JSON string with web part data as retrieved from the web part maintenance mode. Specify `webPartProperties` or `webPartData` but not both.
|
|
29
|
+
: JSON string with web part data as retrieved from the web part maintenance mode. Specify either `webPartProperties` or `webPartData` but not both.
|
|
30
30
|
|
|
31
31
|
`--section [section]`
|
|
32
32
|
: Number of the section to which the web part should be added (1 or higher).
|
|
@@ -79,3 +79,7 @@ Add the standard Image web part with the preconfigured image
|
|
|
79
79
|
```sh
|
|
80
80
|
m365 spo page clientsidewebpart add --webUrl https://contoso.sharepoint.com/sites/a-team --pageName page.aspx --standardWebPart Image --webPartData '{ "dataVersion": "1.8", "serverProcessedContent": {"htmlStrings":{},"searchablePlainTexts":{"captionText":""},"imageSources":{"imageSource":"/sites/team-a/SiteAssets/work-life-balance.png"},"links":{}}, "properties": {"imageSourceType":2,"altText":"a group of people on a beach","overlayText":"Work life balance","fileName":"48146-OFF12_Justice_01.png","siteId":"27664b85-067d-4be9-a7d7-89b2e804d09f","webId":"a7664b85-067d-4be9-a7d7-89b2e804d09f","listId":"37664b85-067d-4be9-a7d7-89b2e804d09f","uniqueId":"67664b85-067d-4be9-a7d7-89b2e804d09f","imgWidth":650,"imgHeight":433,"fixAspectRatio":false,"isOverlayTextEnabled":true}}'
|
|
81
81
|
```
|
|
82
|
+
|
|
83
|
+
## Response
|
|
84
|
+
|
|
85
|
+
The command won't return a response on success.
|
|
@@ -11,16 +11,16 @@ m365 spo page column get [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site where the page to retrieve is located
|
|
14
|
+
: URL of the site where the page to retrieve is located.
|
|
15
15
|
|
|
16
16
|
`-n, --pageName <pageName>`
|
|
17
|
-
: Name of the page to get column information of
|
|
17
|
+
: Name of the page to get column information of.
|
|
18
18
|
|
|
19
19
|
`-s, --section <section>`
|
|
20
|
-
: ID of the section where the column is located
|
|
20
|
+
: ID of the section where the column is located.
|
|
21
21
|
|
|
22
22
|
`-c, --column <column>`
|
|
23
|
-
: ID of the column for which to retrieve more information
|
|
23
|
+
: ID of the column for which to retrieve more information.
|
|
24
24
|
|
|
25
25
|
--8<-- "docs/cmd/_global.md"
|
|
26
26
|
|
|
@@ -30,8 +30,71 @@ If the specified `pageName` doesn't refer to an existing modern page, you will g
|
|
|
30
30
|
|
|
31
31
|
## Examples
|
|
32
32
|
|
|
33
|
-
Get information about the first column in the first section of a modern page
|
|
33
|
+
Get information about the first column in the first section of a modern page
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
36
|
m365 spo page column get --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx --section 1 --column 1
|
|
37
37
|
```
|
|
38
|
+
|
|
39
|
+
## Response
|
|
40
|
+
|
|
41
|
+
=== "JSON"
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"factor": 12,
|
|
46
|
+
"order": 1,
|
|
47
|
+
"dataVersion": "1.0",
|
|
48
|
+
"jsonData": "{"displayMode":2,"position":{"sectionFactor":12,"sectionIndex":1,"zoneIndex":1}}",
|
|
49
|
+
"controls": [
|
|
50
|
+
{
|
|
51
|
+
"controlType": 3,
|
|
52
|
+
"dataVersion": "1.0",
|
|
53
|
+
"order": 1,
|
|
54
|
+
"id": "7558d804-0334-49ca-b14a-53870cf6caae",
|
|
55
|
+
"controlData": {
|
|
56
|
+
"controlType": 3,
|
|
57
|
+
"displayMode": 2,
|
|
58
|
+
"id": "7558d804-0334-49ca-b14a-53870cf6caae",
|
|
59
|
+
"position": {
|
|
60
|
+
"controlIndex": 1,
|
|
61
|
+
"sectionIndex": 1,
|
|
62
|
+
"zoneIndex": 1,
|
|
63
|
+
"sectionFactor": 12,
|
|
64
|
+
"layoutIndex": 1
|
|
65
|
+
},
|
|
66
|
+
"webPartId": "e377ea37-9047-43b9-8cdb-a761be2f8e09",
|
|
67
|
+
"emphasis": {}
|
|
68
|
+
},
|
|
69
|
+
"title": "Bing Maps",
|
|
70
|
+
"description": "Display a location on a map using Bing Maps.",
|
|
71
|
+
"propertieJson": {
|
|
72
|
+
"pushPins": [],
|
|
73
|
+
"maxNumberOfPushPins": 1,
|
|
74
|
+
"shouldShowPushPinTitle": true,
|
|
75
|
+
"zoomLevel": 12,
|
|
76
|
+
"mapType": "road"
|
|
77
|
+
},
|
|
78
|
+
"webPartId": "e377ea37-9047-43b9-8cdb-a761be2f8e09",
|
|
79
|
+
"htmlProperties": "",
|
|
80
|
+
"serverProcessedContent": null,
|
|
81
|
+
"canvasDataVersion": "1.0"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
=== "Text"
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
controls: 7558d804-0334-49ca-b14a-53870cf6caae (Bing Maps)
|
|
91
|
+
factor : 12
|
|
92
|
+
order : 1
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
=== "CSV"
|
|
96
|
+
|
|
97
|
+
```csv
|
|
98
|
+
factor,order,controls
|
|
99
|
+
12,1,7558d804-0334-49ca-b14a-53870cf6caae (Bing Maps)
|
|
100
|
+
```
|
|
@@ -11,13 +11,13 @@ m365 spo page column list [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site where the page to retrieve is located
|
|
14
|
+
: URL of the site where the page to retrieve is located.
|
|
15
15
|
|
|
16
16
|
`-n, --pageName <pageName>`
|
|
17
|
-
: Name of the page to list columns of
|
|
17
|
+
: Name of the page to list columns of.
|
|
18
18
|
|
|
19
19
|
`-s, --section <sectionId>`
|
|
20
|
-
: ID of the section for which to list columns
|
|
20
|
+
: ID of the section for which to list columns.
|
|
21
21
|
|
|
22
22
|
--8<-- "docs/cmd/_global.md"
|
|
23
23
|
|
|
@@ -27,8 +27,40 @@ If the specified `pageName` doesn't refer to an existing modern page, you will g
|
|
|
27
27
|
|
|
28
28
|
## Examples
|
|
29
29
|
|
|
30
|
-
List columns in the first section of a modern page
|
|
30
|
+
List columns in the first section of a modern page
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
33
|
m365 spo page column list --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx --section 1
|
|
34
34
|
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Response
|
|
38
|
+
|
|
39
|
+
=== "JSON"
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
[
|
|
43
|
+
{
|
|
44
|
+
"factor": 12,
|
|
45
|
+
"order": 1,
|
|
46
|
+
"dataVersion": "1.0",
|
|
47
|
+
"jsonData": "{"displayMode":2,"position":{"sectionFactor":12,"sectionIndex":1,"zoneIndex":1}}",
|
|
48
|
+
"controls": 1
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
=== "Text"
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
controls: 1
|
|
57
|
+
factor : 12
|
|
58
|
+
order : 1
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
=== "CSV"
|
|
62
|
+
|
|
63
|
+
```csv
|
|
64
|
+
factor,order,controls
|
|
65
|
+
12,1,1
|
|
66
|
+
```
|
|
@@ -11,13 +11,13 @@ m365 spo page control get [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-i, --id <id>`
|
|
14
|
-
: ID of the control to retrieve information for
|
|
14
|
+
: ID of the control to retrieve information for.
|
|
15
15
|
|
|
16
16
|
`-n, --pageName <pageName>`
|
|
17
|
-
: Name of the page where the control is located
|
|
17
|
+
: Name of the page where the control is located.
|
|
18
18
|
|
|
19
19
|
`-u, --webUrl <webUrl>`
|
|
20
|
-
: URL of the site where the page to retrieve is located
|
|
20
|
+
: URL of the site where the page to retrieve is located.
|
|
21
21
|
|
|
22
22
|
--8<-- "docs/cmd/_global.md"
|
|
23
23
|
|
|
@@ -32,3 +32,70 @@ Get information about the control with ID _3ede60d3-dc2c-438b-b5bf-cc40bb2351e1_
|
|
|
32
32
|
```sh
|
|
33
33
|
m365 spo page control get --id 3ede60d3-dc2c-438b-b5bf-cc40bb2351e1 --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx
|
|
34
34
|
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Response
|
|
38
|
+
|
|
39
|
+
=== "JSON"
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"id": "7558d804-0334-49ca-b14a-53870cf6caae",
|
|
44
|
+
"type": "Client-side web part",
|
|
45
|
+
"title": "Bing Maps",
|
|
46
|
+
"controlType": 3,
|
|
47
|
+
"order": 1,
|
|
48
|
+
"controlData": {
|
|
49
|
+
"controlType": 3,
|
|
50
|
+
"displayMode": 2,
|
|
51
|
+
"id": "7558d804-0334-49ca-b14a-53870cf6caae",
|
|
52
|
+
"position": {
|
|
53
|
+
"controlIndex": 1,
|
|
54
|
+
"sectionIndex": 1,
|
|
55
|
+
"zoneIndex": 1,
|
|
56
|
+
"sectionFactor": 12,
|
|
57
|
+
"layoutIndex": 1
|
|
58
|
+
},
|
|
59
|
+
"webPartId": "e377ea37-9047-43b9-8cdb-a761be2f8e09",
|
|
60
|
+
"emphasis": {},
|
|
61
|
+
"webPartData": {
|
|
62
|
+
"dataVersion": "1.0",
|
|
63
|
+
"description": "Display a location on a map using Bing Maps.",
|
|
64
|
+
"id": "e377ea37-9047-43b9-8cdb-a761be2f8e09",
|
|
65
|
+
"instanceId": "7558d804-0334-49ca-b14a-53870cf6caae",
|
|
66
|
+
"properties": {
|
|
67
|
+
"pushPins": [],
|
|
68
|
+
"maxNumberOfPushPins": 1,
|
|
69
|
+
"shouldShowPushPinTitle": true,
|
|
70
|
+
"zoomLevel": 12,
|
|
71
|
+
"mapType": "road"
|
|
72
|
+
},
|
|
73
|
+
"title": "Bing Maps",
|
|
74
|
+
"serverProcessedContent": {
|
|
75
|
+
"htmlStrings": {},
|
|
76
|
+
"searchablePlainTexts": {},
|
|
77
|
+
"imageSources": {},
|
|
78
|
+
"links": {}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
=== "Text"
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
controlData: {"controlType":3,"displayMode":2,"id":"7558d804-0334-49ca-b14a-53870cf6caae","position":{"controlIndex":1,"sectionIndex":1,"zoneIndex":1,"sectionFactor":12,"layoutIndex":1},"webPartId":"e377ea37-9047-43b9-8cdb-a761be2f8e09","emphasis":{},"webPartData":{"dataVersion":"1.0","description":"Display a location on a map using Bing Maps.","id":"e377ea37-9047-43b9-8cdb-a761be2f8e09","instanceId":"7558d804-0334-49ca-b14a-53870cf6caae","properties":{"pushPins":[],"maxNumberOfPushPins":1,"shouldShowPushPinTitle":true,"zoomLevel":12,"mapType":"road"},"title":"Bing Maps","serverProcessedContent":{"htmlStrings":{},"searchablePlainTexts":{},"imageSources":{},"links":{}}}}
|
|
89
|
+
controlType: 3
|
|
90
|
+
id : 7558d804-0334-49ca-b14a-53870cf6caae
|
|
91
|
+
order : 1
|
|
92
|
+
title : Bing Maps
|
|
93
|
+
type : Client-side web part
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
=== "CSV"
|
|
97
|
+
|
|
98
|
+
```csv
|
|
99
|
+
id,type,title,controlType,order,controlData
|
|
100
|
+
7558d804-0334-49ca-b14a-53870cf6caae,Client-side web part,Bing Maps,3,1,"{""controlType"":3,""displayMode"":2,""id"":""7558d804-0334-49ca-b14a-53870cf6caae"",""position"":{""controlIndex"":1,""sectionIndex"":1,""zoneIndex"":1,""sectionFactor"":12,""layoutIndex"":1},""webPartId"":""e377ea37-9047-43b9-8cdb-a761be2f8e09"",""emphasis"":{},""webPartData"":{""dataVersion"":""1.0"",""description"":""Display a location on a map using Bing Maps."",""id"":""e377ea37-9047-43b9-8cdb-a761be2f8e09"",""instanceId"":""7558d804-0334-49ca-b14a-53870cf6caae"",""properties"":{""pushPins"":[],""maxNumberOfPushPins"":1,""shouldShowPushPinTitle"":true,""zoomLevel"":12,""mapType"":""road""},""title"":""Bing Maps"",""serverProcessedContent"":{""htmlStrings"":{},""searchablePlainTexts"":{},""imageSources"":{},""links"":{}}}}"
|
|
101
|
+
```
|
|
@@ -11,10 +11,10 @@ m365 spo page control list [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-n, --pageName <pageName>`
|
|
14
|
-
: Name of the page to list controls of
|
|
14
|
+
: Name of the page to list controls of.
|
|
15
15
|
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: URL of the site where the page to retrieve is located
|
|
17
|
+
: URL of the site where the page to retrieve is located.
|
|
18
18
|
|
|
19
19
|
--8<-- "docs/cmd/_global.md"
|
|
20
20
|
|
|
@@ -24,8 +24,74 @@ If the specified `pageName` doesn't refer to an existing modern page, you will g
|
|
|
24
24
|
|
|
25
25
|
## Examples
|
|
26
26
|
|
|
27
|
-
List controls on the modern page
|
|
27
|
+
List controls on the modern page
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
30
|
m365 spo page control list --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx
|
|
31
31
|
```
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## Response
|
|
35
|
+
|
|
36
|
+
=== "JSON"
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
[
|
|
40
|
+
{
|
|
41
|
+
"id": "7558d804-0334-49ca-b14a-53870cf6caae",
|
|
42
|
+
"type": "Client-side web part",
|
|
43
|
+
"title": "Bing Maps",
|
|
44
|
+
"controlType": 3,
|
|
45
|
+
"order": 1,
|
|
46
|
+
"controlData": {
|
|
47
|
+
"controlType": 3,
|
|
48
|
+
"displayMode": 2,
|
|
49
|
+
"id": "7558d804-0334-49ca-b14a-53870cf6caae",
|
|
50
|
+
"position": {
|
|
51
|
+
"controlIndex": 1,
|
|
52
|
+
"sectionIndex": 1,
|
|
53
|
+
"zoneIndex": 1,
|
|
54
|
+
"sectionFactor": 12,
|
|
55
|
+
"layoutIndex": 1
|
|
56
|
+
},
|
|
57
|
+
"webPartId": "e377ea37-9047-43b9-8cdb-a761be2f8e09",
|
|
58
|
+
"emphasis": {},
|
|
59
|
+
"webPartData": {
|
|
60
|
+
"dataVersion": "1.0",
|
|
61
|
+
"description": "Display a location on a map using Bing Maps.",
|
|
62
|
+
"id": "e377ea37-9047-43b9-8cdb-a761be2f8e09",
|
|
63
|
+
"instanceId": "7558d804-0334-49ca-b14a-53870cf6caae",
|
|
64
|
+
"properties": {
|
|
65
|
+
"pushPins": [],
|
|
66
|
+
"maxNumberOfPushPins": 1,
|
|
67
|
+
"shouldShowPushPinTitle": true,
|
|
68
|
+
"zoomLevel": 12,
|
|
69
|
+
"mapType": "road"
|
|
70
|
+
},
|
|
71
|
+
"title": "Bing Maps",
|
|
72
|
+
"serverProcessedContent": {
|
|
73
|
+
"htmlStrings": {},
|
|
74
|
+
"searchablePlainTexts": {},
|
|
75
|
+
"imageSources": {},
|
|
76
|
+
"links": {}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
=== "Text"
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
id title type
|
|
88
|
+
------------------------------------ --------- ---------------------
|
|
89
|
+
7558d804-0334-49ca-b14a-53870cf6caae Bing Maps Client-side web part
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
=== "CSV"
|
|
93
|
+
|
|
94
|
+
```csv
|
|
95
|
+
id,type,title
|
|
96
|
+
7558d804-0334-49ca-b14a-53870cf6caae,Client-side web part,Bing Maps
|
|
97
|
+
```
|
|
@@ -11,19 +11,19 @@ m365 spo page control set [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-i, --id <id>`
|
|
14
|
-
: ID of the control to update properties of
|
|
14
|
+
: ID of the control to update properties of.
|
|
15
15
|
|
|
16
16
|
`-n, --pageName <pageName>`
|
|
17
|
-
: Name of the page where the control is located
|
|
17
|
+
: Name of the page where the control is located.
|
|
18
18
|
|
|
19
19
|
`-u, --webUrl <webUrl>`
|
|
20
|
-
: URL of the site where the page is located
|
|
20
|
+
: URL of the site where the page is located.
|
|
21
21
|
|
|
22
22
|
`--webPartData [webPartData]`
|
|
23
|
-
: JSON string with web part data as retrieved from the web part maintenance mode. Specify `webPartProperties` or `webPartData` but not both
|
|
23
|
+
: JSON string with web part data as retrieved from the web part maintenance mode. Specify either `webPartProperties` or `webPartData` but not both.
|
|
24
24
|
|
|
25
25
|
`--webPartProperties [webPartProperties]`
|
|
26
|
-
: JSON string with web part data as retrieved from the web part maintenance mode. Specify `webPartProperties` or `webPartData` but not both
|
|
26
|
+
: JSON string with web part data as retrieved from the web part maintenance mode. Specify either `webPartProperties` or `webPartData` but not both.
|
|
27
27
|
|
|
28
28
|
--8<-- "docs/cmd/_global.md"
|
|
29
29
|
|
|
@@ -36,14 +36,18 @@ If the specified `pageName` doesn't refer to an existing modern page, you will g
|
|
|
36
36
|
|
|
37
37
|
## Examples
|
|
38
38
|
|
|
39
|
-
Update web part data for the control
|
|
39
|
+
Update web part data for the control, placed on a modern page
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
42
|
m365 spo page control set --id 3ede60d3-dc2c-438b-b5bf-cc40bb2351e1 --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx --webPartData '{"title":"New WP Title","properties": {"description": "New description"}}'
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
Update web part properties for the control
|
|
45
|
+
Update web part properties for the control, placed on a modern page
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
48
|
m365 spo page control set --id 3ede60d3-dc2c-438b-b5bf-cc40bb2351e1 --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx --webPartProperties '{"description": "New description"}'
|
|
49
49
|
```
|
|
50
|
+
|
|
51
|
+
## Response
|
|
52
|
+
|
|
53
|
+
The command won't return a response on success.
|