@pnp/cli-microsoft365 6.7.0-beta.60f2469 → 6.7.0-beta.872b0f5
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 +1 -1
- package/README.md +1 -1
- package/dist/Auth.js +75 -4
- package/dist/AuthServer.js +2 -1
- package/dist/Command.js +56 -7
- package/dist/m365/base/AzmgmtCommand.js +11 -0
- package/dist/m365/base/PowerAppsCommand.js +11 -0
- package/dist/m365/base/PowerPlatformCommand.js +11 -0
- package/dist/m365/commands/login.js +17 -1
- package/dist/m365/commands/status.js +4 -2
- package/dist/m365/flow/commands/run/run-get.js +31 -1
- package/dist/m365/spo/commands/file/file-list.js +104 -31
- package/dist/m365/spo/commands/listitem/listitem-list.js +113 -55
- package/dist/request.js +7 -0
- package/dist/utils/misc.js +11 -0
- package/docs/docs/cmd/flow/run/run-get.md +110 -9
- package/docs/docs/cmd/login.md +5 -2
- package/docs/docs/cmd/planner/task/task-add.md +3 -1
- package/docs/docs/cmd/planner/task/task-set.md +6 -4
- package/docs/docs/cmd/spo/file/file-list.md +87 -2
- package/docs/docs/cmd/spo/listitem/listitem-list.md +22 -8
- package/package.json +1 -1
- package/dist/m365/spo/commands/file/FilePropertiesCollection.js +0 -3
- package/dist/m365/spo/commands/folder/FileFolderCollection.js +0 -3
|
@@ -32,7 +32,7 @@ m365 spo listitem list [options]
|
|
|
32
32
|
: OData filter to use to query the list of items with. Specify `camlQuery` or `filter` but not both.
|
|
33
33
|
|
|
34
34
|
`-p, --pageSize [pageSize]`
|
|
35
|
-
: Number of list items to return. Specify `camlQuery` or `pageSize` but not both.
|
|
35
|
+
: Number of list items to return. Specify `camlQuery` or `pageSize` but not both. The default value is 5000.
|
|
36
36
|
|
|
37
37
|
`-n, --pageNumber [pageNumber]`
|
|
38
38
|
: Page number to return if `pageSize` is specified (first page is indexed as value of 0).
|
|
@@ -41,6 +41,8 @@ m365 spo listitem list [options]
|
|
|
41
41
|
|
|
42
42
|
## Remarks
|
|
43
43
|
|
|
44
|
+
This command retrieves all items in the list, even if there are more than 5000. Use the `pageSize` and `pageNumber` options if you only want a specific amount of items. When using a CAML query, include a `RowLimit`-node to get all items. If you run into list view threshold exceptions, remove any Query-conditions or filters and also include a `RowLimit`-node.
|
|
45
|
+
|
|
44
46
|
`pageNumber` is specified as a 0-based index. A value of `2` returns the third page of items.
|
|
45
47
|
|
|
46
48
|
If you want to specify a lookup type in the `properties` option, define which columns from the related list should be returned.
|
|
@@ -53,12 +55,6 @@ Get all items from a list named Demo List
|
|
|
53
55
|
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
54
56
|
```
|
|
55
57
|
|
|
56
|
-
From a list named _Demo List_ get all items with title _Demo list item_ using a CAML query
|
|
57
|
-
|
|
58
|
-
```sh
|
|
59
|
-
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --camlQuery "<View><Query><Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Demo list item</Value></Eq></Where></Query></View>"
|
|
60
|
-
```
|
|
61
|
-
|
|
62
58
|
Get all items from a list with ID _935c13a0-cc53-4103-8b48-c1d0828eaa7f_
|
|
63
59
|
|
|
64
60
|
```sh
|
|
@@ -83,10 +79,16 @@ From a list named _Demo List_ get all items with title _Demo list item_ using an
|
|
|
83
79
|
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --filter "Title eq 'Demo list item'"
|
|
84
80
|
```
|
|
85
81
|
|
|
82
|
+
From a list named _Demo List_ get the first 100 items
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --pageSize 100 --pageNumber 0
|
|
86
|
+
```
|
|
87
|
+
|
|
86
88
|
From a list named _Demo List_ get the second batch of 10 items
|
|
87
89
|
|
|
88
90
|
```sh
|
|
89
|
-
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --pageSize 10 --pageNumber
|
|
91
|
+
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --pageSize 10 --pageNumber 1
|
|
90
92
|
```
|
|
91
93
|
|
|
92
94
|
Get all items from a list by server-relative URL
|
|
@@ -95,6 +97,18 @@ Get all items from a list by server-relative URL
|
|
|
95
97
|
m365 spo listitem list --listUrl /sites/project-x/documents --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
96
98
|
```
|
|
97
99
|
|
|
100
|
+
From a list named _Demo List_ get all items with title _Demo list item_ using a CAML query
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --camlQuery "<View><Query><Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Demo list item</Value></Eq></Where></Query><RowLimit Paged='TRUE'>5000</RowLimit></View>"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
From a library named _Demo Library_ with 5000+ files and folders, get all items recursively without running into a list view threshold exception, using a CAML query
|
|
107
|
+
|
|
108
|
+
```sh
|
|
109
|
+
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --camlQuery "<View Scope='RecursiveAll'><Query></Query><ViewFields><FieldRef Name='Title'/></ViewFields><RowLimit Paged='TRUE'>5000</RowLimit></View>"
|
|
110
|
+
```
|
|
111
|
+
|
|
98
112
|
## Response
|
|
99
113
|
|
|
100
114
|
=== "JSON"
|
package/package.json
CHANGED