Skip to content

Commit d3d5ee7

Browse files
committed
Rebranding and UI and dynamic input form optimalizations
1 parent 3b3832e commit d3d5ee7

35 files changed

+131
-23917
lines changed

README.md

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ![Enhanced SharePoint Power Automate Trigger Command Set icon](resources/extension-icon-small.png "Enhanced SharePoint Power Automate Trigger Command Set icon") Enhanced SharePoint Power Automate Trigger Command Set
1+
# ![Enhanced Flow Trigger Command Set icon](resources/extension-icon-small.png "Enhanced Flow Trigger Command Set icon") Enhanced Flow Trigger Command Set
22

33
## Table of Contents
44
- [Summary](#summary)
@@ -13,13 +13,13 @@
1313

1414
## Summary
1515

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 />
1717
<br />
1818
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.
1919

20-
**[<img src="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+
**[<img src="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)**
2121

22-
**[<img src="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+
**[<img src="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)**
2323

2424
## Compatibility
2525

@@ -33,12 +33,15 @@ This SPFx (SharePoint Framework) command set expands on the existing 'trigger a
3333

3434
![Compatible with SharePoint document libraries](https://img.shields.io/badge/Document%20libraries-Compatible-green.svg) ![Compatible with SharePoint custom lists](https://img.shields.io/badge/Custom%20lists-Compatible-green.svg)
3535

36-
![Compatible with Microsoft Edge](https://img.shields.io/badge/MS%20Edge-Compatible-green.svg) ![Compatible with Google Chrome](https://img.shields.io/badge/Google%20Chrome-Compatible-green.svg) ![Compatible with Mozilla Firefox](https://img.shields.io/badge/Mozilla%20Firefox-Compatible-green.svg) ![Responsive UI](https://img.shields.io/badge/Mobile-Compatible-green.svg)
36+
![Compatible with Power Automate](https://img.shields.io/badge/Power%20Automate-Compatible-green.svg) ![Compatible with Azure Logic Apps](https://img.shields.io/badge/Azure%20Logic%20Apps-Compatible-green.svg) ![Compatible with custom API's](https://img.shields.io/badge/Custom%20APIs-Compatible-green.svg)
37+
38+
![Compatible with Microsoft Edge](https://img.shields.io/badge/MS%20Edge-Compatible-green.svg) ![Compatible with Google Chrome](https://img.shields.io/badge/Google%20Chrome-Compatible-green.svg) ![Compatible with Mozilla Firefox](https://img.shields.io/badge/Mozilla%20Firefox-Compatible-green.svg) ![Compatible with mobile](https://img.shields.io/badge/Mobile-Compatible-green.svg)
3739

3840
## Applies to
3941

4042
- [SharePoint Framework](https://aka.ms/spfx)
4143
- [Power Automate](https://powerautomate.microsoft.com/en-us/)
44+
- [Azure Logic Apps](https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-overview)
4245
- [Microsoft 365 tenant](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-developer-tenant)
4346
- [Elegant DI in SPFx](https://ypcode.wordpress.com/2018/07/30/elegant-di-in-spfx/)
4447
- [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
5356
## Prerequisites
5457

5558
> - 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/))
5760
> - (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)
5861
5962
## Solution
6063

61-
| Solution | Author(s) |
62-
| -------------------------------------------------------------- | --------------------------------------------- |
63-
| Document Libraries Enhanced Power Automate Trigger Command Set | cup o'365 ([contact](mailto:[email protected])) |
64-
| Custom Lists Enhanced Power Automate Trigger Command Set | cup o'365 ([contact](mailto:[email protected])) |
64+
| Solution | Author(s) |
65+
| ---------------------------------------------------- | --------------------------------------------- |
66+
| Document Libraries Enhanced Flow Trigger Command Set | cup o'365 ([contact](mailto:[email protected])) |
67+
| Custom Lists Enhanced Flow Trigger Command Set | cup o'365 ([contact](mailto:[email protected])) |
6568

6669
## Version history
6770

68-
| Version | Date | Comments |
69-
| ------------------------------------------------------------------------------------------- | --------------- | ------------------------------------------------------------------------------------------ |
70-
| [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 |
71+
| Version | Date | Comments |
72+
| --------------------------------------------------------------------------------- | --------------- | ------------------------------------------------------------------------------------------ |
73+
| [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 |
7780

7881
## Supported languages
7982
- English
@@ -85,10 +88,10 @@ This SPFx (SharePoint Framework) command set expands on the existing 'trigger a
8588

8689
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.
8790

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````.
8992

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````.
9295

9396
The web part will call the flow by using the information in the composed flow configuration selected by the user.
9497
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:
172175
}
173176
````
174177

175-
This request body translates to the following Power Automate body schema:
178+
This request body translates to the following flow body schema:
176179
````
177180
{
178181
"type": "object",
@@ -265,7 +268,7 @@ The command set also supports showing the user a custom message via the flow res
265268
}
266269
````
267270

268-
This translates to the following Power Automate body schema:
271+
This translates to the following flow body schema:
269272
````
270273
{
271274
"type": "object",
@@ -282,6 +285,6 @@ If a message is present, it will be displayed in the dialog that is shown to the
282285

283286
## Download the web part packages
284287

285-
**[<img src="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+
**[<img src="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)**
286289

287-
**[<img src="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+
**[<img src="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)**

SPFx/.env

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
SPFX_DOC_COMMAND_SOLUTION_NAME=doc-enhanced-power-automate-trigger-client-side-solution
1+
SPFX_DOC_COMMAND_SOLUTION_NAME=doc-enhanced-flow-trigger-client-side-solution
22
SPFX_DOC_COMMAND_SOLUTION_ID=5DA1DC8B-F9A4-43D4-9A0B-C2E89E2D5FBE
3-
SPFX_DOC_COMMAND_SOLUTION_PACKAGE_PATH=solution/releases/doc-enhanced-power-automate-trigger.sppkg
4-
SPFX_DOC_COMMAND_SOLUTION_LIBRARY_NAME=doc-enhanced-power-automate-trigger
3+
SPFX_DOC_COMMAND_SOLUTION_PACKAGE_PATH=solution/releases/doc-enhanced-flow-trigger.sppkg
4+
SPFX_DOC_COMMAND_SOLUTION_LIBRARY_NAME=doc-enhanced-flow-trigger
55
SPFX_DOC_COMMAND_FEATURE_ID=2f4bcd0a-2956-4803-8024-911265601037
66
SPFX_DOC_COMMAND_COMPONENT_ID=543ef5be-c9cb-4b7b-bdaf-592c7be1493a
77

8-
SPFX_LIST_COMMAND_SOLUTION_NAME=list-enhanced-power-automate-trigger-client-side-solution
8+
SPFX_LIST_COMMAND_SOLUTION_NAME=list-enhanced-flow-trigger-client-side-solution
99
SPFX_LIST_COMMAND_SOLUTION_ID=4e07447e-5e7b-47cf-9703-352250244134
10-
SPFX_LIST_COMMAND_SOLUTION_PACKAGE_PATH=solution/releases/list-enhanced-power-automate-trigger.sppkg
11-
SPFX_LIST_COMMAND_SOLUTION_LIBRARY_NAME=list-enhanced-power-automate-trigger
10+
SPFX_LIST_COMMAND_SOLUTION_PACKAGE_PATH=solution/releases/list-enhanced-flow-trigger.sppkg
11+
SPFX_LIST_COMMAND_SOLUTION_LIBRARY_NAME=list-enhanced-flow-trigger
1212
SPFX_LIST_COMMAND_FEATURE_ID=e5d232cb-ec2f-428c-b63b-ce5b1377b40a
1313
SPFX_LIST_COMMAND_COMPONENT_ID=f8098e01-30d8-4411-a27d-da7328c0eca6
1414

15-
SPFX_DEV_COMMAND_SOLUTION_NAME=dev-enhanced-power-automate-trigger-client-side-solution
15+
SPFX_DEV_COMMAND_SOLUTION_NAME=dev-enhanced-flow-trigger-client-side-solution
1616
SPFX_DEV_COMMAND_SOLUTION_ID=6a305bc9-c1e5-4995-a23e-959851d784f6
17-
SPFX_DEV_COMMAND_SOLUTION_PACKAGE_PATH=solution/dev-enhanced-power-automate-trigger.sppkg
18-
SPFX_DEV_COMMAND_SOLUTION_LIBRARY_NAME=dev-enhanced-power-automate-trigger
17+
SPFX_DEV_COMMAND_SOLUTION_PACKAGE_PATH=solution/dev-enhanced-flow-trigger.sppkg
18+
SPFX_DEV_COMMAND_SOLUTION_LIBRARY_NAME=dev-enhanced-flow-trigger
1919
SPFX_DEV_COMMAND_FEATURE_ID=4891fcc5-7de8-4336-aea9-0957ffeb83d4
2020
SPFX_DEV_COMMAND_COMPONENT_ID=817ae812-ac12-4047-accf-c9766b6a434a

SPFx/.yo-rc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"plusBeta": false,
44
"isCreatingSolution": true,
55
"version": "1.15.0",
6-
"libraryName": "doc-enhanced-power-automate-trigger",
6+
"libraryName": "doc-enhanced-flow-trigger",
77
"libraryId": "5DA1DC8B-F9A4-43D4-9A0B-C2E89E2D5FBE",
88
"environment": "spo",
99
"packageManager": "npm",
10-
"solutionName": "doc-enhanced-power-automate-trigger",
11-
"solutionShortDescription": "Trigger a Power Automate flow from SharePoint while selecting one or more items.",
10+
"solutionName": "doc-enhanced-flow-trigger",
11+
"solutionShortDescription": "Trigger a Power Automate or Azure Logic Apps flow from SharePoint while selecting one or more items.",
1212
"skipFeatureDeployment": false,
1313
"isDomainIsolated": false,
1414
"componentType": "extension",

SPFx/config/config.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
33
"version": "2.0",
44
"bundles": {
5-
"enhanced-power-automate-trigger-command-set": {
5+
"enhanced-flow-trigger-command-set": {
66
"components": [
77
{
8-
"entrypoint": "./lib/extensions/enhancedPowerAutomateTrigger/EnhancedPowerAutomateTriggerCommandSet.js",
9-
"manifest": "./src/extensions/enhancedPowerAutomateTrigger/EnhancedPowerAutomateTriggerCommandSet.manifest.json"
8+
"entrypoint": "./lib/extensions/enhancedFlowTrigger/EnhancedFlowTriggerCommandSet.js",
9+
"manifest": "./src/extensions/enhancedFlowTrigger/EnhancedFlowTriggerCommandSet.manifest.json"
1010
}
1111
]
1212
}
1313
},
1414
"externals": {},
1515
"localizedResources": {
16-
"EnhancedPowerAutomateTriggerCommandSetStrings": "lib/extensions/enhancedPowerAutomateTrigger/loc/{locale}.js",
16+
"EnhancedFlowTriggerCommandSetStrings": "lib/extensions/enhancedFlowTrigger/loc/{locale}.js",
1717
"ControlStrings": "node_modules/@pnp/spfx-controls-react/lib/loc/{locale}.js"
1818
}
19-
}
19+
}

SPFx/config/deploy-azure-storage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
33
"workingDir": "./release/assets/",
44
"account": "<!-- STORAGE ACCOUNT NAME -->",
5-
"container": "enhanced-power-automate-trigger",
5+
"container": "enhanced-flow-trigger",
66
"accessKey": "<!-- ACCESS KEY -->"
77
}

0 commit comments

Comments
 (0)