Skip to content

Latest commit

 

History

History
214 lines (131 loc) · 10.1 KB

sequential-modern-approvals.md

File metadata and controls

214 lines (131 loc) · 10.1 KB
title description services suite author contributors ms.subservice ms.topic ms.date ms.author ms.reviewer ms.collection search.audienceType
Manage sequential approvals with Power Automate
Learn how to create a modern approval workflow with multiple approvers.
flow
v-aangie
hamenon-MS
cloud-flow
conceptual
09/08/2023
hamenon
angieandrews
get-started
bap-ai-copilot
flowmaker
enduser

Manage sequential approvals with Power Automate

Some workflows require pre-approval before the final approver is required to sign off. For example, a company may have a sequential approval policy that requires pre-approval for invoices over $1000.00 before they're approved by the Finance department.

In this tutorial, you create a sequential approval flow that manages employee vacation requests. For detailed information about using SharePoint with Power Automate, go to the SharePoint documentation.

For detailed information about using SharePoint with Power Automate, go to the SharePoint documentation.

Note

SharePoint is used here only as an example. It isn't required to create approval flows. You can use any of the more than 200 services with which Power Automate integrates to drive your flows. If you're using SharePoint 2010, go to SharePoint 2010 workflow retirement.

Detailed steps in the flow

The flow:

  1. Starts when an employee creates vacation request in a SharePoint Online list.
  2. Adds the vacation request to the approval center and then emails the request to the pre-approver.
  3. Emails the pre-approval decision to the employee.
  4. Updates the SharePoint Online list with the pre-approver's decision and comments. Note: If the request is pre-approved, the flow continues with these steps:
  5. Sends the request to the final approver.
  6. Emails the final decision to the employee.
  7. Updates the SharePoint list with the final decision.

This image summarizes the preceding steps:

Diagram of sequential approval flow.

Prerequisites

[!INCLUDE prerequisites-for-modern-approvals]

For the purposes of this walkthrough, the SharePoint Online list that you create must include the following columns:

The SharePoint Online list you create must include the following columns:

Title Single line of text
Vacation start date Date and time
Vacation end date Date and time
Comments Single line Of text
Approved Yes/No
Manager comments Multiple lines Of text
Modified Date and time
Created Date and time
Pre-approved Yes/No
Created By Person or group
Modified By Person or group

Make note of the name and URL of the SharePoint Online list. We use these items later when you configure the SharePoint - When a new item is created trigger.

Power Automate uses either the classic designer or the Edit with Copilot (preview) designer. To identify which designer you’re using, go to the Note section in Understand the Edit with Copilot designer (preview).

Create your flow

[!INCLUDE sign-in-and-create-flow-from-blank-template]

[!INCLUDE add-trigger-when-sharepoint-item-created]

  1. On the When an item is created card, select the Site Address and the List Name for the SharePoint list that you created earlier.

Get the manager for the person who created the vacation request

[!INCLUDE add-get-manager-action]

Note

It's a good idea to periodically save changes to your flow as you go.

Add an approval action for pre-approvals

[!INCLUDE add-an-approval-action]

This action sends the pre-approval request to the email address in the Assigned To box.

Add a condition

[!INCLUDE add-approval-condition-response]

Note

This condition checks the response from the Start and wait for an approval action.

Add an email action for pre-approvals

[!INCLUDE add-action-to-send-email-when-vacation-approved]

configure pre-approved email template.

Add an update action for pre-approved requests

[!INCLUDE add-action-to-update-sharepoint-with-approval]

update an item configuration.

Get the pre-approver's manager

  1. Use the Get the manager for the person who created the vacation request steps we did earlier to add, and then configure another Get manager action. This time we get the pre-approver's manager.

  2. The Get manager 2 card should resemble this image when you're finished. Be sure to use the Email token from the Get manager category on the Add dynamic content from the apps and services used in this flow card.

    get pre-approver's manager.

Add the final approval action

  1. Use the add an approval action for pre-approvals steps we did earlier to add, and then configure another Start and wait for an approval action. This action sends an email request for final approval.

  2. When you're done, the card should resemble this image:

    configure the approval.

Add the final approval condition

Repeat the steps from add a condition to add, and then configure a Condition that checks the final approver's decision.

Send email with final approval

  1. Use the steps from Add an email action for pre-approvals to add, and then configure an action that sends an email when vacation requests are approved.

  2. When you're finished, your card should resemble this image:

    final approval email template.

Update SharePoint with approval

  1. Use the steps from Add an update action for pre-approved requests to add, and then configure an action that updates SharePoint when the vacation request is approved.

  2. When you're finished, the card should resemble this image:

    update item configuration card.

Send email with pre-approval rejection

[!INCLUDE add-action-to-send-email-when-vacation-rejected]

configuration for rejected requests.

This action must be added to the IF NO, DO NOTHING branch below the Condition card.

Update SharePoint with pre-approval rejection

[!INCLUDE add-action-to-update-sharepoint-with-rejection]

update sharepoint for rejected requests.

Send email with final rejection

  1. Use the steps from Send email with pre-approval rejection to add, and then configure an action that sends an email when the vacation request is rejected by the final approver.

    This action must be added to the IF NO, DO NOTHING branch below the Condition 2 card.

  2. When you're finished, the card should resemble this image:

    Screenshot of the configuration for rejected requests.

Update SharePoint with final rejection

  1. Use the steps from Update SharePoint with pre-approval rejection to add, and then configure an action that updates SharePoint if the final approver rejects the vacation request.

  2. When you're finished, the card should resemble this image:

    update item card.

  3. Select Update flow to save the work we've done.

If you've followed along, your flow should resemble this image:

overview of flow.

Now that you've created the flow, let's see it in action.

Request an approval

[!INCLUDE request-vacation-approval]

Your request should resemble this image:

vacation request.

View pending approval requests

[!INCLUDE view-pending-approvals]

Pre-approve a request

[!INCLUDE approve-request-from-different-locations]

Approve the request

The steps to approve a request are identical to the steps to pre-approve a request

The final approver gets the vacation request only after the request has been pre-approved.

Reject a request

[!INCLUDE reject-a-request]

See also

Single approver modern approvals walkthrough

[!INCLUDEfooter-include]