Power Automate is a Microsoft tool used to create automated workflows between applications and services. It helps streamline repetitive tasks and processes across different apps and platforms. In Power Apps, Power Automate can be integrated to trigger actions based on user input or specific events within an app, like submitting a form or updating a record. Here automating an approval workflow for tasks created in a SharePoint list using Power Apps and Power Automate. The goal is to streamline the process of submitting tasks, obtaining supervisor approval, and updating the task status based on the approval outcome.

Advantages

Disadvantages

Steps to Send Emails

Open Power Automate

From the Power Apps ribbon, select Power Automate > Create a new flow.

Create an Automated Flow

Configure the Update Item Action

Add Approval Action

Condition for Approval/Reject

If the "Outcome" is "Approve".

Approve

There are two cases true or false. In true first, give an action update item and then Send an email (V2), same as in false condition also

In True

  1. In Update Item Action: In the advanced parameter set the field needs to be updated as Approved.
    Advanced parameter
  2. Send an email (V2)
    • This action is to notify the task creator about the approval, including any comments from the approval response.
    • In the To field, enter the email of the task creator (from SharePoint).
    • In the Subject field write the subject name.
    • In the Body field, add dynamic content such as the task name, approval status, and any comments from the approval process.
      Comments

In False

  1. In Update Item Action: In the advanced parameter set the field needs to be updated as Rejected.
    Rejected
  2. Send an email (V2)
    • In the To field, enter the email of the task creator (from SharePoint).
    • In the Subject field write the subject name.
    • In the Body field, add dynamic content such as the task name, approval status, and any comments from the approval process.
      Parameters

Save and Test the flow