cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Penngineer
Helper I
Helper I

Do until not working as intended.

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

5 REPLIES 5
Pstork1
Dual Super User
Dual Super User

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.



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

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?

mequan
Community Support
Community Support

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_form... .

 

Thanks

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

 

DoUntil.png

mequan
Community Support
Community Support

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_form...

Thanks

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,359)