@pnp/cli-microsoft365 7.8.0-beta.3152fc7 → 7.8.0-beta.5ca5055
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/cli/cli.js +16 -1
- package/dist/m365/cli/commands/config/config-set.js +4 -0
- package/dist/m365/flow/commands/run/run-list.js +25 -0
- package/dist/m365/spo/commands/site/site-add.js +17 -26
- package/dist/m365/spo/commands/site/site-remove.js +17 -26
- package/dist/m365/spo/commands/site/site-set.js +9 -13
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +9 -13
- package/dist/settingsNames.js +1 -0
- package/dist/utils/spo.js +209 -278
- package/docs/docs/_clisettings.mdx +1 -0
- package/docs/docs/cmd/flow/run/run-list.mdx +74 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ Setting name|Definition|Default value
|
|
|
11
11
|
`disableTelemetry`|Disables sending of telemetry data|`false`
|
|
12
12
|
`errorOutput`|Defines if errors should be written to `stdout` or `stderr`|`stderr`
|
|
13
13
|
`helpMode`|Defines what part of command's help to display. Allowed values are `options`, `examples`, `remarks`, `response`, `full`|`options`
|
|
14
|
+
`helpTarget`|Defines the way the command help will be shown. Allowed values are `console` or `web`
|
|
14
15
|
`output`|Defines the default output when issuing a command. Allowed values are `json`, `text`, `csv`, `md`, `none`|`json`
|
|
15
16
|
`printErrorsAsPlainText`|When output mode is set to `json`, print error messages as plain-text rather than JSON|`true`
|
|
16
17
|
`prompt`|Prompts for missing values in required options and enables interactive selection when multiple values are available for a command that requires a specific value to be retrieved.|`true`
|
|
@@ -30,6 +30,9 @@ m365 flow run list [options]
|
|
|
30
30
|
`--triggerEndTime [triggerEndTime]`
|
|
31
31
|
: Time indicating the exclusive end of a time range of flow runs to return. This should be defined as a valid ISO 8601 string (2021-12-16T18:28:48.6964197Z).
|
|
32
32
|
|
|
33
|
+
`--withTrigger`
|
|
34
|
+
: If specified, include information about the trigger details for each run.
|
|
35
|
+
|
|
33
36
|
`--asAdmin`
|
|
34
37
|
: Run the command as admin. Use this flag when targeting flows you don't own.
|
|
35
38
|
```
|
|
@@ -48,6 +51,8 @@ If the environment with the name you specified doesn't exist, you will get the `
|
|
|
48
51
|
|
|
49
52
|
If the Microsoft Flow with the name you specified doesn't exist, you will get the `The caller with object id 'abc' does not have permission for connection 'xyz' under Api 'shared_logicflows'.` error.
|
|
50
53
|
|
|
54
|
+
When using `--withTrigger`, extra requests will get fired for each retrieved flow run. This has an impact on the time the command takes to run.
|
|
55
|
+
|
|
51
56
|
## Examples
|
|
52
57
|
|
|
53
58
|
List runs of the specified Microsoft Flow.
|
|
@@ -56,7 +61,7 @@ List runs of the specified Microsoft Flow.
|
|
|
56
61
|
m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a
|
|
57
62
|
```
|
|
58
63
|
|
|
59
|
-
List runs of the specified Microsoft Flow with a specific status
|
|
64
|
+
List runs of the specified Microsoft Flow with a specific status
|
|
60
65
|
|
|
61
66
|
```sh
|
|
62
67
|
m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a --status Running
|
|
@@ -74,6 +79,12 @@ List runs of the specified Microsoft Flow owned by another user.
|
|
|
74
79
|
m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a --asAdmin
|
|
75
80
|
```
|
|
76
81
|
|
|
82
|
+
List runs of the specified Microsoft Flow with the trigger information.
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a --withTrigger
|
|
86
|
+
```
|
|
87
|
+
|
|
77
88
|
## Response
|
|
78
89
|
|
|
79
90
|
### Standard response
|
|
@@ -164,3 +175,65 @@ m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c
|
|
|
164
175
|
|
|
165
176
|
</TabItem>
|
|
166
177
|
</Tabs>
|
|
178
|
+
|
|
179
|
+
### `withTrigger` response
|
|
180
|
+
|
|
181
|
+
When using the option `withTrigger`, the response for the json-output will differ.
|
|
182
|
+
|
|
183
|
+
<Tabs>
|
|
184
|
+
<TabItem value="JSON">
|
|
185
|
+
|
|
186
|
+
```json
|
|
187
|
+
[
|
|
188
|
+
{
|
|
189
|
+
"name": "08584917134229837167098637545CU67",
|
|
190
|
+
"id": "/providers/Microsoft.ProcessSimple/environments/Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d/flows/a18e89d1-4c75-41e4-9517-e90aedc079be/runs/08584917134229837167098637545CU67",
|
|
191
|
+
"type": "Microsoft.ProcessSimple/environments/flows/runs",
|
|
192
|
+
"properties": {
|
|
193
|
+
"startTime": "2024-03-08T10:24:22.4948083Z",
|
|
194
|
+
"endTime": "2024-03-08T10:24:22.6662784Z",
|
|
195
|
+
"status": "Succeeded",
|
|
196
|
+
"correlation": {
|
|
197
|
+
"clientTrackingId": "08584917134229837167098637545CU67"
|
|
198
|
+
},
|
|
199
|
+
"trigger": {
|
|
200
|
+
"name": "manual",
|
|
201
|
+
"inputsLink": {
|
|
202
|
+
"uri": "https://prod-93.westeurope.logic.azure.com:443/workflows/21b6d99931344cc1bc644e57e415d259/runs/08584917134229837167098637545CU67/contents/TriggerInputs?api-version=2016-06-01&se=2024-03-08T16%3A00%3A00.0000000Z&sp=%2Fruns%2F08584917134229837167098637545CU67%2Fcontents%2FTriggerInputs%2Fread&sv=1.0&sig=8_DTJWq2nvHw4eewGrQJ_VJB54_51SEoKmiciqSSUk8",
|
|
203
|
+
"contentVersion": "qp1b8NIh2ZLUxjxKwnkWng==",
|
|
204
|
+
"contentSize": 507,
|
|
205
|
+
"contentHash": {
|
|
206
|
+
"algorithm": "md5",
|
|
207
|
+
"value": "qp1b8NIh2ZLUxjxKwnkWng=="
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"outputsLink": {
|
|
211
|
+
"uri": "https://prod-93.westeurope.logic.azure.com:443/workflows/21b6d99931344cc1bc644e57e415d259/runs/08584917134229837167098637545CU67/contents/TriggerOutputs?api-version=2016-06-01&se=2024-03-08T16%3A00%3A00.0000000Z&sp=%2Fruns%2F08584917134229837167098637545CU67%2Fcontents%2FTriggerOutputs%2Fread&sv=1.0&sig=1_KZU33J_uY672L0WYeFw3YZu5q3bs-4oU-WWF6a-B0",
|
|
212
|
+
"contentVersion": "1S3nJ0ffDf82K46CzvjNyQ==",
|
|
213
|
+
"contentSize": 1672,
|
|
214
|
+
"contentHash": {
|
|
215
|
+
"algorithm": "md5",
|
|
216
|
+
"value": "1S3nJ0ffDf82K46CzvjNyQ=="
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"startTime": "2024-03-08T10:24:22.4892073Z",
|
|
220
|
+
"endTime": "2024-03-08T10:24:22.4892073Z",
|
|
221
|
+
"originHistoryName": "08584917134229837167098637545CU67",
|
|
222
|
+
"correlation": {
|
|
223
|
+
"clientTrackingId": "08584917134229837167098637545CU67"
|
|
224
|
+
},
|
|
225
|
+
"status": "Succeeded"
|
|
226
|
+
},
|
|
227
|
+
"isAborted": false
|
|
228
|
+
},
|
|
229
|
+
"triggerInformation": {
|
|
230
|
+
"text": "This is text",
|
|
231
|
+
"boolean": true,
|
|
232
|
+
"number": 10
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
</TabItem>
|
|
239
|
+
</Tabs>
|
package/package.json
CHANGED