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 / Best practice for Do W...
Power Automate
Unanswered

Best practice for Do While & Condition

(0) ShareShare
ReportReport
Posted on by 8

Is there a best practice to use 'Do Until' and 'Condition'? 

cy__1-1660301124092.png

wanted a conditional exit for the 'do until' but it doesn't seemed to evaluate the 'updated' Boolean variables. 

Categories:
I have the same question (0)
  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @cy_ ,

    what's your objective?

    If you want to check a variable until it assumes specific value, the "Do until" control should work.

     

    Please let me know.

     

    If I have answered your question, please mark my post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

  • cy_ Profile Picture
    8 on at

    @MarconettiMarco I wanted to exit the loop once a Boolean variable is set to true, but the do until condition does not reevaluate the variable, I have tried to add another condition within the loop to force a reevaluation of the variable but also to no avail

     

    surprisingly when the condition fails, it returns true and the true case that is dependent to the condition can still continue to run

     

    cy__1-1660303486735.png

     

     

     

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @cy_  Pls check this post. How to setup reminder in approval flow?[Part-4] | Gopenly

    Pls share your flow in edit mode.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • VictorIvanidze Profile Picture
    13,079 on at

    Hi @cy_,

     

    did you try to set variable booSkip to true  in your Do until?

    Show how you did that.

  • cy_ Profile Picture
    8 on at

    thanks all for the messages

     

    following was the screenshot from a previously backed-up flow, the current version already have all the variables and loop removed. this version has 2 Boolean variables, hence you will see the 'or' in the condition. (note: condition 4 is within condition 5, which is added after the 'do until' condition failed)

    cy__2-1660523786209.png

    cy__0-1660523229649.png

     

    I have removed the 1 variable (the original post) and 'or' to try to isolate the problem but to no avail. the variable itself is not re-evaluated in the 2nd iteration (action failed), but somehow it returns 'true' is able to proceed with the 'true' case's connectors, even when it failed the additional condition that I include to re-test the condition

     

    what are the best practices in using the 'do until' and 'condition' connectors?

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
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard