web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Do until - Approvals e...
Power Automate
Unanswered

Do until - Approvals email

(0) ShareShare
ReportReport
Posted on by 45

Hi everybody,

 

Thank you in advance for any help.

 

I have been working on a flow for Approvals and it mostly works well. The left side of the screenshot sent through is okay the trouble is coming from the right side. 

 

I'd like the flow to send an email reminder to action the approval set by the flow after 2 days of not being approved, and then on the third day too. The 'do until' isn't recognising when the variable is true, and the approval has been approved. 

 

Could you help please?

 

Note: All names have been deleted so that wouldn't be a causation of the issue.Flow - Approval reminder 2.pngFlow - Approval reminder.png

Categories:
I have the same question (0)
  • HarryO Profile Picture
    Microsoft Employee on at

    Hi 

     

    I have recently put together and tested a Flow with the outcome you are wanting to achieve.

     

    Please see the steps below:

     

    1. Trigger for flow to start
    2. Create an Approval
      1. Not Start and Wait for Approval
    3. Initialize variable.
      1. Name: Control (example)
      2. Type: Boolean
      3. Value: true
    4. Initialize variable
      1. Name: Counter (example)
      2. Type: Integer
      3. Value 0
    5. Do Until Control
      1. Control is equal to False
    6. Wait for an approval
      1. Approval ID: Approval ID
    7. Click on the ellipsis on the Wait for an approval connector to set the Timeout duration (P1D = 1 day)
    8. Send an email (V2) – If wanting to use O365 Outlook
      1. Fill in details using dynamic content and use Respond Link option from Create an approval connector
    9. On the Send an email connector, Configure to run after: Wait for an approval has timed out
    10. Increment variable:
      1. Name: Counter
      2. Value: 1
    11. Condition control
      1. Counter is equal to â€˜number of re-attempts you want’
      2. If yes brand: Set Variable
        1.      Name: control
        2.      Value: false
      3. Add a parallel branch
      4. Set Variable on the parallel branch
        1. Name: control
        2. Value: false

    Using this solution means that if the approver is working from a resent approval, it comes as an email with the link to take them to their Flow approvals (in step 8a). If they approve here and go back to the original email with the Approve and Reject option it will auto update and say the approval has already been submitted.

     

    I hope this helps and if it does then please accept this as the solution.

     

    Kind regards,
    Harry.

  • SamHarland97 Profile Picture
    45 on at

    Hi Harry, 

     

    Thank you for your reply. 

     

    I have made a mistake closing the 'apply to each' box and not showing it. I need to implement a create item on a SharePoint list into this, where would I do this?

     

    Thanks, 

    Sam 

  • HarryO Profile Picture
    Microsoft Employee on at

    Hi Sam

     

    I have tested adding an action to create an item on a SharePoint list if the first approval is accepted or if the approval process goes into a Do Until loop. Please note this was based on the solution that I provided above, I will paste the steps again below and highlight the additional actions in bold red

     

    1. Trigger for flow to start
    2. Create an Approval
      1. Not Start and Wait for Approval
    3. Initialize variable.
      1. Name: Control (example)
      2. Type: Boolean
      3. Value: true
    4. Initialize variable
      1. Name: Counter (example)
      2. Type: Integer
      3. Value 0
    5. Do Until Control
      1. Control is equal to False
    6. Wait for an approval
      1. Approval ID: Approval ID
    7. Click on the ellipsis on the Wait for an approval connector to set the Timeout duration (P1D = 1 day)
    8. Send an email (V2) – If wanting to use O365 Outlook
      1. Fill in details using dynamic content and use Respond Link option from Create an approval connector
    9. On the Send an email connector, Configure to run after: Wait for an approval has timed out
    10. Increment variable:
      1. Name: Counter
      2. Value: 1
    11. Condition control
      1. Counter is equal to â€˜number of re-attempts you want’
      2. If yes brand: Set Variable
        1.      Name: control
        2.      Value: false
      3. Add a parallel branch
      4. Set Variable on the parallel branch
        1. Name: control
        2. Value: false
      5. Add Create Item action and fill in the required details
    12.  Add Condition Control
      1. Set condtition to: Control (or name entered in Initialzie Variable) is equal to True
      2. In the If Yes container add Create Item and fill in the required details.

    Kind regards,
    Harry.

  • SamHarland97 Profile Picture
    45 on at

    Hi Harry, 

     

    I apologise for my delay in getting back to you. 

     

    This is the automation I had initially used: https://flow.microsoft.com/en-us/blog/approval-reminders-using-parallel-branches/

     

    My problem is that it is now not recognising that the approval is equal to true.

     

    I have tested the automation above and haven't received the desired result.

     

    Thank you again for all of your help. 

  • efw Profile Picture
    2 on at

    Hi Harry, I guess I don't really understand this do until control = false loop. how does it keep incrementing if control was set to true, but then once inside the loop, there is a parallel branch that sets it to false? won't it stop incrementing at that point because it's a do until control = false?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard