Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Do until - Boolean variable - email

(0) ShareShare
ReportReport
Posted on by 45

Hi everybody, 

 

I thought I had a solution for this form my last post but I am still having trouble with the attached flow. 

 

The 'Do Until' isn't recognising that the variable is true. What I want to happen is until the approval has been approved to send a reminder email every day.

 

Any help appreciated, thank you. 

 

Do until - 2.png

  • ScottShearer Profile Picture
    25,212 Most Valuable Professional on at
    Re: Do until - Boolean variable - email

    @SamHarland97 

    I think what is happening is that your loop is timing out.  A Do Until loop will time out after 1 hour by default.  If you click on "Change limits" here is what you'll see"

    image.png

     

    To change the limit to 29 days:

    image.png

     

     

  • manuelstgomes Profile Picture
    6,625 on at
    Re: Do until - Boolean variable - email

    Hi  

     

    The "Do Until" operation is like breaking pasta in half for Italians. You should never do it :).

     

    All kinds of hurt can come from it. May I suggest another approach?

     

    Separate into two Flows:

    1. Triggers the approval and waits for the reply (what you have on the left branch). Save that the approval process started somewhere.
    2. Have another Flow that periodically triggers that checks if finalized the approval and, if not, send a notification.

     

    The idea is to have things as deterministic as possible, and with this approach, you can end up in a case where the approval already ended and the Flow keeps on running until the timeout. Flows should start and finish as fast as possible.

     

    I know that some people don't agree with me, and this is a dividing topic, but the "Do until," in my opinion, should be avoided as much as possible.

     

    Cheers

    Manuel

     

    ------------------------------------------------------------------

    If I have answered your question, please mark it as "Accept as Solution." It will help other members finding the solution faster. If you like my response, please give it a Thumbs Up. ?

    Otherwise, reply to it, and the community will do its best to help you.

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow