You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-26Lines changed: 29 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
#  Enhanced SharePoint Power Automate Trigger Command Set
1
+
#  Enhanced Flow Trigger Command Set
2
2
3
3
## Table of Contents
4
4
-[Summary](#summary)
@@ -13,13 +13,13 @@
13
13
14
14
## Summary
15
15
16
-
My colleague [MrAutomate33](https://github.com/mrautomate33) and I have been longing for a solution that supports triggering Power Automate flows while selecting multiple files in a SharePoint document library or multiple list items in a SharePoint custom list. Now, finally it's here! <br />
16
+
My colleague [MrAutomate33](https://github.com/mrautomate33) and I have been longing for a solution that supports triggering Power Automate and/or Azure Logic Apps flows while selecting multiple files in a SharePoint document library or multiple list items in a SharePoint custom list. Now, finally it's here! <br />
17
17
<br />
18
18
This SPFx (SharePoint Framework) command set expands on the existing 'trigger a flow' menu button in SharePoint, and allows you to configure one or more HTTP request triggered flows and serve the user with a choice on which flow to execute when selecting one or more items by injecting a menu lint and context button upon loading the page. A sppkg for both SharePoint document libaries and custom lists are available.
19
19
20
-
**[<imgsrc="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.iconsdb.com%2Ficons%2Fpreview%2Froyal-blue%2Fdata-transfer-download-xxl.png&f=1&nofb=1"alt="Download .sppkg file"style="width:15px;margin-right:10px;"/><u>Download the .sppkg file for custom lists here!</u>](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v1.5.0)**
20
+
**[<imgsrc="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.iconsdb.com%2Ficons%2Fpreview%2Froyal-blue%2Fdata-transfer-download-xxl.png&f=1&nofb=1"alt="Download .sppkg file"style="width:15px;margin-right:10px;"/><u>Download the .sppkg file for custom lists here!</u>](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v2.0.0)**
21
21
22
-
**[<imgsrc="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.iconsdb.com%2Ficons%2Fpreview%2Froyal-blue%2Fdata-transfer-download-xxl.png&f=1&nofb=1"alt="Download .sppkg file"style="width:15px;margin-right:10px;"/><u>Download the .sppkg file for document libraries here!</u>](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v1.5.0)**
22
+
**[<imgsrc="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.iconsdb.com%2Ficons%2Fpreview%2Froyal-blue%2Fdata-transfer-download-xxl.png&f=1&nofb=1"alt="Download .sppkg file"style="width:15px;margin-right:10px;"/><u>Download the .sppkg file for document libraries here!</u>](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v2.0.0)**
23
23
24
24
## Compatibility
25
25
@@ -33,12 +33,15 @@ This SPFx (SharePoint Framework) command set expands on the existing 'trigger a
33
33
34
34

35
35
36
-

36
+

37
+
38
+

-[Elegant DI in SPFx](https://ypcode.wordpress.com/2018/07/30/elegant-di-in-spfx/)
44
47
-[Using .env files in SharePoint Framework development](https://digitalworkplace365.wordpress.com/2020/03/05/using-env-files-in-sharepoint-framework-development/)
@@ -53,27 +56,27 @@ This SPFx (SharePoint Framework) command set expands on the existing 'trigger a
53
56
## Prerequisites
54
57
55
58
> - Node.js v12/14/16
56
-
> - A Power Automate per user or per flow plan that allows you to use the Request (HTTP) connector (see [Power Automate pricing](https://powerautomate.microsoft.com/en-us/pricing/))
59
+
> -(If using Power Automate) A Power Automate per user or per flow plan that allows you to use the Request (HTTP) connector (see [Power Automate pricing](https://powerautomate.microsoft.com/en-us/pricing/))
57
60
> - (optional) An M365 account. Get your own free Microsoft 365 tenant from [M365 developer program](https://developer.microsoft.com/en-us/microsoft-365/dev-program)
|[0.9.0](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v0.9.0)| April 3, 2022 | Pre-release |
71
-
|[1.0.0](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v1.0.0)| July 1, 2022 | Initial release, doc lib and lists compatibility |
72
-
|[1.1.0](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v1.1.0)| July 24, 2022 | Migration to SPFx 1.15.0 and lots of optimalizations |
73
-
|[1.2.0](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v1.2.1)| August 1, 2022 | Customizable list and folder whitelisting and content type and file extension blacklisting |
74
-
|[1.3.0](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v1.3.0)| October 2, 2022 | Dynamic user input form |
75
-
|[1.4.0](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v1.4.0)| October 4, 2022 | Support lookup as user input |
76
-
|[1.5.0](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v1.5.0)| October 5, 2022 | UI and dynamic input form optimalizations|
|[0.9.0](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v0.9.0)| April 3, 2022 | Pre-release |
74
+
|[1.0.0](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v1.0.0)| July 1, 2022 | Initial release, doc lib and lists compatibility |
75
+
|[1.1.0](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v1.1.0)| July 24, 2022 | Migration to SPFx 1.15.0 and lots of optimalizations |
76
+
|[1.2.0](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v1.2.1)| August 1, 2022 | Customizable list and folder whitelisting and content type and file extension blacklisting |
77
+
|[1.3.0](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v1.3.0)| October 2, 2022 | Dynamic user input form |
78
+
|[1.4.0](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v1.4.0)| October 4, 2022 | Support lookup as user input |
79
+
|[2.0.0](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v2.0.0)| October 5, 2022 |Rebranding and UI and dynamic input form optimalizations |
77
80
78
81
## Supported languages
79
82
- English
@@ -85,10 +88,10 @@ This SPFx (SharePoint Framework) command set expands on the existing 'trigger a
85
88
86
89
Unlike SPFx web parts, command sets do not support configuration via a property panel. To ensure customization to this solution is still possible, a workaround has been implemented.
87
90
88
-
Upon installing the web part on a SharePoint site, a Power Automate trigger configuration custom list will be automatically provisioned with the name ````Enhanced Power Automate Trigger Configuration````.
91
+
Upon installing the web part on a SharePoint site, a flow trigger configuration custom list will be automatically provisioned with the name ````Enhanced Flow Trigger Configuration````.
89
92
90
-
Upon initialization, the web part will fetch all items in this provisioned list and use the information stored in it to create flow configuration, which is then presented to the user as a choice which flow to trigger. If the web part succeeds in fetching and composing the configuration, a console message will be logged with the name of the provisioned list. This message looks like ````EnhancedPowerAutomateTriggerCommandSet -> Initialized! Listening to config list: Enhanced Power Automate Trigger Configuration````.
91
-
If it fails, a console message will be logged. This message looks like ````EnhancedPowerAutomateTriggerCommandSet -> Error while initializing````.
93
+
Upon initialization, the web part will fetch all items in this provisioned list and use the information stored in it to create flow configuration, which is then presented to the user as a choice which flow to trigger. If the web part succeeds in fetching and composing the configuration, a console message will be logged with the name of the provisioned list. This message looks like ````EnhancedFlowTriggerCommandSet -> Initialized! Listening to config list: Enhanced Flow Trigger Configuration````.
94
+
If it fails, a console message will be logged. This message looks like ````EnhancedFlowTriggerCommandSet -> Error while initializing````.
92
95
93
96
The web part will call the flow by using the information in the composed flow configuration selected by the user.
94
97
The provisioned configuration list contains the following fields. Each item in this list represents a flow the user may call from the list/document library:
@@ -172,7 +175,7 @@ An example of the request body is outlined below:
172
175
}
173
176
````
174
177
175
-
This request body translates to the following Power Automate body schema:
178
+
This request body translates to the following flow body schema:
176
179
````
177
180
{
178
181
"type": "object",
@@ -265,7 +268,7 @@ The command set also supports showing the user a custom message via the flow res
265
268
}
266
269
````
267
270
268
-
This translates to the following Power Automate body schema:
271
+
This translates to the following flow body schema:
269
272
````
270
273
{
271
274
"type": "object",
@@ -282,6 +285,6 @@ If a message is present, it will be displayed in the dialog that is shown to the
282
285
283
286
## Download the web part packages
284
287
285
-
**[<imgsrc="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.iconsdb.com%2Ficons%2Fpreview%2Froyal-blue%2Fdata-transfer-download-xxl.png&f=1&nofb=1"alt="Download .sppkg file"style="width:15px;margin-right:10px;"/><u>Download the .sppkg file for custom lists here!</u>](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v1.5.0)**
288
+
**[<imgsrc="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.iconsdb.com%2Ficons%2Fpreview%2Froyal-blue%2Fdata-transfer-download-xxl.png&f=1&nofb=1"alt="Download .sppkg file"style="width:15px;margin-right:10px;"/><u>Download the .sppkg file for custom lists here!</u>](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v2.0.0)**
286
289
287
-
**[<imgsrc="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.iconsdb.com%2Ficons%2Fpreview%2Froyal-blue%2Fdata-transfer-download-xxl.png&f=1&nofb=1"alt="Download .sppkg file"style="width:15px;margin-right:10px;"/><u>Download the .sppkg file for document libraries here!</u>](https://github.com/cupo365/enhanced-power-automate-command-set/releases/tag/v1.5.0)**
290
+
**[<imgsrc="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.iconsdb.com%2Ficons%2Fpreview%2Froyal-blue%2Fdata-transfer-download-xxl.png&f=1&nofb=1"alt="Download .sppkg file"style="width:15px;margin-right:10px;"/><u>Download the .sppkg file for document libraries here!</u>](https://github.com/cupo365/enhanced-flow-command-set/releases/tag/v2.0.0)**
0 commit comments