Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new sample 'approval-reminders' #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions samples/approval-reminders/README.md
Original file line number Diff line number Diff line change
@@ -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.**
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added samples/approval-reminders/assets/Library.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.