diff --git a/samples/approval-reminders/README.md b/samples/approval-reminders/README.md new file mode 100644 index 0000000..010995c --- /dev/null +++ b/samples/approval-reminders/README.md @@ -0,0 +1,67 @@ +# Approval Reminders + +## Summary + +This sample sends an approval and reminders to a user via Teams until they respond to the approval. It will retrigger itself as needed to overcome timeout limitations. + +![Approval Email](./assets/EmailApproval.png) +![Teams Reminder](./assets/TeamsReminder.png) + + +## Applies to + +* [Microsoft Power Automate](https://docs.microsoft.com/power-automate/) + +## Compatibility + +![Premium License](https://img.shields.io/badge/Premium%20License-Not%20Required-green.svg "Premium license not required") +![On-Premises Connectors](https://img.shields.io/badge/On--Premises%20Connectors-No-green.svg "Does not use on-premise connectors") +![Custom Connectors](https://img.shields.io/badge/Custom%20Connectors-Not%20Required-green.svg "Does not use custom connectors") + +## Authors + +| Solution | Author(s) | +| --- | --- | +| approval-reminders | [Steve Corey](https://github.com/stevecorey365) ([@stevecorey365](https://www.twitter.com/stevecorey365) ) + +## Version history + +| Version | Date | Comments | +| --- | --- | --- | +| 1.0 | October 17, 2023 | Initial release | + +## Features + +This sample demonstrates the following concepts: + +* Creating an approval +* Sending reminders for the approval via Teams adaptive cards + + +## Minimal Path to Awesome + +### Create SharePoint List + +Before you can use this sample flow, you'll need to create a SharePoint library with the following custom columns: + +| Name | Type |Required +|---|---|---| +|ApprovalID|Single line of text|No +|ApprovalCard|Multiple lines of text|No +|Status|Choice|Yes + +The library will look similar to this. Note that the ApprovalID and ApprovalCard fields don't have to be present on the view: + ![Library](./assets/Library.png) + +### Import Solution + +1. Download the solution found under the `solution` folder here: [Approval Reminders Zip](./solution/SampleApprovalReminders_1_0_0_2.zip) +1. Import the Flow Solution. Open [https://make.powerautomate.com/](https://make.powerautomate.com/). Open **Solutions**, **Import**. +1. Browse to the file you downloaded and select **Next**. +1. In the **Import a solution** screen, select the connections you wish to use for the solution or create new connections. +1. In the **Environment Variables** screen, select the site and library name of the library you wish to create approvals on. +1. Once complete, select **Import**. + +## Disclaimer + +**THIS CODE IS PROVIDED** _**AS IS**_ **WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** diff --git a/samples/approval-reminders/assets/EmailApproval.png b/samples/approval-reminders/assets/EmailApproval.png new file mode 100644 index 0000000..dcadc6a Binary files /dev/null and b/samples/approval-reminders/assets/EmailApproval.png differ diff --git a/samples/approval-reminders/assets/Library.png b/samples/approval-reminders/assets/Library.png new file mode 100644 index 0000000..96a8f27 Binary files /dev/null and b/samples/approval-reminders/assets/Library.png differ diff --git a/samples/approval-reminders/assets/TeamsReminder.png b/samples/approval-reminders/assets/TeamsReminder.png new file mode 100644 index 0000000..56d5b7c Binary files /dev/null and b/samples/approval-reminders/assets/TeamsReminder.png differ diff --git a/samples/approval-reminders/solution/SampleApprovalReminders_1_0_0_2.zip b/samples/approval-reminders/solution/SampleApprovalReminders_1_0_0_2.zip new file mode 100644 index 0000000..c215bc7 Binary files /dev/null and b/samples/approval-reminders/solution/SampleApprovalReminders_1_0_0_2.zip differ