powerautomate

Creating a Basic flow using Power Automate Templates

A good way to get started is to use a template that is suited to your organization’s scenario. You can choose from a collection of templates to find the one that best matches your scenario. Search all templates or browse by category to find your scenario, and then follow the steps in the template to create a cloud flow from the template.

You can tweak templates by adding, editing, or removing triggers and actions to create your own flows. You can copy paste actions in the same flow or across flows to speed up the your tweaks.

In this Lab

In this lab, you will create a cloud flow using a Power Automate template that will create an approval workflow when a SharePoint list item is created

Task 1

Create your own custom SharePoint list using the following steps:

Task 2

Create a cloud flow from a template: a. Navigate to Templates and search for send approval email when new item is added. Click on the first automated flow.

image

b. Ensure all connections are authenticated. If not, please fix your connections. Click Continue.

image

c. Update the values in the trigger. Site address: https://edumscloud.sharepoint.com/sites/PowerAutomateDemos and List Name: Expense

image

d. Customize the template to add a new action after the trigger. Click on the + button followed by Add an Action.

image

e. Search for Get my profile and select Get my profile(v2) from the action list

image

f. Update the next action Start and wait for approval.

If approve response is Approve, edit the Send an email(v2) action as below

If approver response is Reject, add a Send an email(v2) action as below:

image

h. Update the status of expense claim in the Sharepoint List

If approve response is Approve, update the status as Approved and Rejected if approve response is Rejected

image

i. Save the flow

Task 3

Test the flow by adding an expense item to the SharePoint list using the following steps: a. Navigate to your SharePoint list, for example, by clicking on the list name on the Quick Launch bar.

b. Click New and complete the form similar to the following screenshot (keep the Status field empty):

image

c. Save the new record, which will automatically trigger the flow. e. Check the flow status. It should be running:

image

f. Click the running flow to see the progress of this instance of the flow:

image

g. Approve or reject the expense claim request by either making a selection on your email or in the Approvals Centre

image

h. Approve or Reject, and once the approval/rejection is completed, check the status value in the list.

image

Optional exercise if time permits:

Amend the flow to automatically approve the expense If the amount is smaller than $500; otherwise, the expense item will progress through the approval process.