Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Do until not working as intended.

(0) ShareShare
ReportReport
Posted on by 37

I have an approval flow that updates a list when 1 person responds and then ends.  However, it is supposed to email everyone every 7 days until someone responds.  It seems to be doing the opposite.  It is not terminating when someone responds.  It is still running.

 

NotWorking.png

  • mequan Profile Picture
    on at
    Re: Do until not working as intended.

    Hi @Penngineer ,

     

    I may suggest you change the Timeout part as PT7D or longer and test again. Timeout value would follow ISO 8601, so For how to configure Timeout value, you may check https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm.

    Thanks

  • Penngineer Profile Picture
    37 on at
    Re: Do until not working as intended.

    I am not sure what you mean.  This is what the Do Until looks like.

     

    DoUntil.png

  • mequan Profile Picture
    on at
    Re: Do until not working as intended.

    Hi @Penngineer ,

     

    May you please check if you already configure time limit of Do until action? Actually Do until will have its own time limit. You may need change Do until limit as 7 Days or longer based on your requirements. For Do until limit you may check https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm .

     

    Thanks

  • Penngineer Profile Picture
    37 on at
    Re: Do until not working as intended.

    Response type is "first to respond".  Changed outcome to responses.  

     

    I am not sure how add an inner loop, but I will work on that.

     

    The person responded on the 1st day.  The approval flow did not check for a response and sent the email on the 7th anyway.  Will the inner loop fix that?

  • Pstork1 Profile Picture
    65,928 Most Valuable Professional on at
    Re: Do until not working as intended.

    Set your approval type to "First to Respond" instead of "All must Reply" and check the Outcome, rather than Responses.  Responses is always a collection, Outcome is a string.  Also, the way its set up the loop in the parallel branch will always keep the flow open for at least 7 days before it completes since Do Until is always evaluated at the end of the loop.  Even after someone responds it will wait the 7 days until it checks whether it should send the reminder or exit.  To fix that replace your delay with an inner loop that has a one hour delay and a counter.  Have that loop run until the counter reaches 168 (7 days X  24 hours) or the approval condition is reached.  Then the reminder will only keep the approval open for a maximum of one hour after the approval completes.

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,594 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow