Hello,
I have a SharePoint list form customized using the Power Apps form. In the back-end, I have a flow that will trigger once the item is created and after that, an email will be sent to the approval to approve (within the Power Apps form, so I am not using send an approval action).
After the user receives the email, I have added a "Do Until action" that checks if DM (Direct Manager) field in SharePoint is approved or rejected. Once the field is updated to the approval response it should be escalated to another approval.
The problems are the following:
- The first problem is that the user receives 60 emails at a time. Maybe, because the Count is 60 but the Timeout of the Do Until is PT3M and for the "Send an email action" is PT2M (every 2 minutes, To remind the user to approve if he has forgotten).
- The second problem is that the Do Until action runs successfully without checking for the condition whether if it's approved or rejected and it gets escalated to the second approval.
What I want to achieve is the following:
- I want to send an email to the user and remind him each and every 2 days (P2D) if he didn't take any response (approve or reject).
- I want the Do Until action jump to another step (approval) once any of the conditions is met (Approved or Rejected) or has timed out.
I have used the following condition inside the "Do Until":
@or(equals(triggerBody()?['DirectManager']?['Value'], 'Approved'),equals(triggerBody()?['DirectManager']?['Value'], 'Rejected'))
Please have a look at the flow result screenshots:


Trigger result
The value returned from the DirectManager field is open (This is a default value when the item is created), and I am mapping this field value inside the Do until condition.
What is the best way to achieve the above scenario?
Can please someone provide an example and explain it in detail?
Any help will be greatly appreciated.