How to Auto Approve Request Using Power Automate? [Using 2 Different Methods]

Recently, I was working on a leave request application for a client. They required that if the approver didn’t approve the request in time, it should be automatically approved after five days. This was to ensure that leave requests didn’t get delayed because the approver was too busy or missed the notification.

However, another requirement came: If the approver doesn’t respond in a limited time, the leave request should be automatically approved one day before the leave starts, but only if the leave is for less than four days.

In this Power Automate tutorial, I will show you how to auto approve request using Power Automate. Additionally, we will discuss how to approve requests automatically one day in advance using Power Automate delay action.

Auto Approve Request Using Power Automate

For this example, I created a SharePoint list of Employee Leave Requests using the below column and data types:

Column NameData Types
Employee NamePerson or Group
Leave TypeChoice
Start DateDate and time
End DateDate and time
Reason for LeaveMultiple lines of text
ManagerPerson or Group
StatusChoice
How to automatically complete approval tasks in Power Automate

Now follow the below steps:

1. Create an automated cloud flow. Give the flow name and select the trigger When an item is created. Also, provide the Site Address and List Name.

Power Automate Approval Requests approved Automatically

2. Now, I will add an action, ‘Start and wait for an approval‘, which will send an email when an item is created in the SharePoint list.

Next, set the below-provided parameters:

  • Approval type: Select an approval type as “Approve/Reject – First to respond” from the drop-down.
  • Title: Enter the title field value from the Dynamic content.
  • Assigned to: Please assign the email of the person who will approve/reject the request to my case manager.
  • Details: Enter the details for the requested from the Dynamic content.
How to automate approved the approval request in Power Automate

3. Now, we will add the Condition action to check whether the leave request is approved or Rejected.

In this Condition action, select the Outcome (from Start and wait for an approval action) value equal to Approve.

How to auto approve request in Power Automate

4. Then, Add the send email action inside the true section and update item properties, as shown in the screenshot below.

Do not forget to update the Status Value as Approved.

Power Automate auto approve request

5. Similarly, add a send email action and update item action inside the false section.

Power Automate auto approved approval request

6. Return to the ‘Send and wait for an approval’ action, and click ‘Settings.’ Under ‘Action timeout,’ set it to ‘P5D’ to automatically approve the request if the approver doesn’t respond within five days.

Take action automatically after approval request timed out in power automate

The timeout duration is specified using the ISO 8601 format. If your requirement is:

  • 1 week -> use P1W
  • 10 days -> use P10D
  • 5 hours -> use PT5H
  • 45 minutes -> use PT45M

To learn more about the ISO 8601 format, Click here to visit Wikipedia.

7. Then, after the ‘Send and wait for an approval action‘ click the + icon and click Add a parallel branch.

Auto-approve an approval request Power Automate

8. Next, add an email action, which sends mail to the requester stating that your request is automatically approved.

How do I auto approve a request in Power Automate

9. Next, select the ‘Send an email’ action, click ‘Settings,’ then under ‘Run after,’ expand the ‘Start and wait for an approval’ section and check ‘Has timed out.’

This runs if the Start and Wait for an approval action has timed out.

How to Auto Approve Request using Power Automate

10. Now add an updated item action and provide the below parameter:

  • Site Address: Select your SharePoint site address where the list is present
  • List Name: Select the list name from the dropdown
  • ID: Pass the ID from the dynamic content value.
  • Status Value: Select Auto Approved from the drop-down
Power Automate Auto Approve the approval Request

11. Then add a ‘Terminate’ action and set the status to ‘Succeeded.’ If you don’t use this action, the flow status will show as ‘Failed’ after the timeout section runs.

auto approved the approval request using Power Automate

Now, our flow is complete. For testing purposes, I changed the ‘Send and wait for an approval’ action timeout to ‘PT5M’.

Power Automate Sending an approval request with automatic approved

If the approver is not approved within 5 minutes, that request must be auto-approved.

Run the Flow to Auto Approve the Approval Request

Now click on Save and run the Flow manually. Once the flow runs, add an item to the SharePoint list.

auto approve approval request using Power Automate

Now, do not approve the request. After five minutes, the flow runs successfully.

Leave Requests How to Auto Approve with Power Automate

After that, the requester receives an email like the screenshot below.

power automate automatically approve Approval request

Auto Approve Request in Power Automate Using Delay Action

In this example, I will show you how to automatically approve an approval request in Power Automate using the delay action.

We will use the same SharePoint list (Employee Leave Requests) and the same flow, but I highly recommend making a copy before proceeding. After that, delete steps 8 to 10 in the above flow.

Now, follow the steps below:

1. In that flow, we did not calculate the leave days, but now we need to calculate so before the ‘Send and wait for an approval action‘ add a compose action and provide the below expression:

div(sub(ticks(triggerBody()?['EndDate']),ticks(triggerBody()?['StartDate'])),864000000000)

Where:

  • ticks(triggerBody()?[‘EndDate’]): This converts the EndDate to ticks.
  • ticks(triggerBody()?[‘StartDate’]): This does the same for the StartDate.
  • sub(…): This subtracts the ticks of StartDate from the ticks of EndDate to get the difference in ticks.
  • div(…, 864000000000): This divides the difference in ticks by 864,000,000,000, which is the number of ticks in a day, converting the result to days.
Power Automate Delay Action to Auto Approve Request

2. Next, add another compose action to the below expression, which gives us a day, like how many days are left to leave.

div(sub(ticks(triggerBody()?['StartDate']),ticks(utcNow())),864000000000)

I named ‘Compose | Days until leave Start‘ to differentiate the two composed actions.

Auto Approve Request using Power Automate Delay Action

3. Then, after the ‘Compose action,’ click the + icon and click Add a parallel branch. Inside the parallel branch, add a condition action check to see if the output composes (which gives us a number of leave days) action is less than or equal to 4.

How to Auto Approve Request using Power Automate Delay Action

4. Inside the true section, add a delay action and provide the count parameters as below expression:

sub(outputs('Compose_|_Days_until_leave_Start'),1)

Next, select the unit parameters as day from the drop-down menu.

Power Automate Auto Approve Request using delay action

5. Next, add an email action that sends an email to the requester stating that your request is automatically approved.

How to auto approve request in Power Automate using Delay action

6. After that, add an updated item action and provide the below parameter:

  • Site Address: Select your SharePoint site address where the list is present
  • List Name: Select the list name from the dropdown
  • ID: Pass the ID from the dynamic content value.
  • Status Value: Select Auto Approved from the drop-down
How to auto complete approval tasks in Power Automate

7. Then add a ‘Terminate’ action and set the status to ‘Succeeded.’

How to auto complete approval request in Power Automate

Our flow is complete now. For testing purposes, I changed the delay action count parameter to 5 and the unit to Minute.

Power Automate auto approve the leave request approval

This means that 5 minutes after submitting the request, it should be automatically approved.

Run the Flow to Auto Approve the Approval Request using Delay Action

Now click on Save and run the Flow manually. Once the flow runs, add an item to the SharePoint list.

How to auto complete approval request in Power Automate using delay action

Do not approve the request now. After five minutes, the flow will run successfully.

Power Automate auto approvel

After that, the requester receives an email like the screenshot below.

How to Auto Approve Request using Power Automate

I hope you follow all the steps to set up an auto-approve approval process for leave requests using Power Automate. Implementing this lets you ensure that requests are handled quickly, even if the approver is busy.

Related Power Automate tutorials:

>

Build a High-Performance Project Management Site in SharePoint Online

User registration Power Apps canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial FREE PDF Download

FREE Power Platform Tutorial PDF

Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…