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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Stop "Do Until" as soo...
Power Automate
Unanswered

Stop "Do Until" as soon as condition is met

(0) ShareShare
ReportReport
Posted on by 17

Hello,

 

I have a flow that sends an email out and starts an Approval when a form is submitted. There is a parallel branch to the Approval and email with a delay, an Item created in a SharePoint list, and a "Do Until" action to send a reminder email every 5 days until the Approval is complete. The list is for follow-ups and tracking of employees who don't respond to the Approval, and there is an action to update the list once the task is complete. 

 

I'm having two problems.

 

Once the Approval is complete the Do Until continues to run for the set interval period, sends an email, and then completes the flow. This is the opposite of what we would really like to see; we need to have the Do Until stop as soon as the Approval is complete so that it won't send another email and will immediately update the SharePoint list. 

 

Basically, is there a way to have the Do Until stopped/finished as soon as the Approval is complete, and then further have the item in that branch also updated? For clarification, this is what it looks like:

Annotation 2024-03-18 131745.png

 

I tried moving the Update Item action to the Approval branch but Power Automate won't allow me to use the ID from items created in a different branch.

 

Any help with this would be sincerely appreciated! 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @mbowline ,

     

    Q1:

    Once you set the variable "approvalDone" to true after the approval is completed, the 'do until' loop should stop.

    Q2:

    You could consider initializing a variable to pass the ID, similar to how "approvalDone" is used to pass the approval result.

     

    Best Regards,

    Bof

  • mbowline Profile Picture
    17 on at

    Thank you for the input! The "Task marked complete" action is the variable being set to true, but it doesn't immediately stop the Do Until loop. The loop continues to run until its next interval (set to 5 days), performs its action, and then stops. I've had employees come back to me telling me they're getting a reminder email even though they completed the approval and it's very frustrating. 

     

    With regards to using a variable to pass the ID, could you please explain how that might be done? I'm not very fluent with variable usage. 

     

    Thank you so much!

  • PatBof Profile Picture
    6 on at

    Hello,

    I made it, creating a child flow in which I put all the actions you have in the right branch of your main flow (in the red square)

    PatBof_0-1714130836957.png

    Example : 

    PatBof_1-1714130898231.png

    This will ensure that the main flow is not blocked.

    Best Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard