Forum Discussion
Automating Reminders for Approval Flows
I am using the Do until with the condition checking to see if a "review status" field in the list has been updated. I then have a delay 24 hours, thinking it will only send one email every 24 hours. I have it set to 1 hour for testing but only recieved 1 reminder email.
Can someone explain to me how the timing works on the Do until?
- Joseph CollinsJun 07, 2018Brass Contributor
Hi Tim!
In short, the DoUntil has the "Change Limits" button under it which controls how long it runs:
Count = seconds and a max of 5000
Timeout = in ISO format and max of 30 days
The Defaults are 60 seconds and 1 hour (PT1H). So that explains why you only received 1 email. It stopped by the default after 1 hr.
The flow will stop based on whichever limit it reaches first. Adding a Delay action is a good idea to extend how long the flow waits for the dountil to resolve but you also have to extend the limits so that your delay doesn't fall outside those limits.
Here is a link to the technical limits of the DoUntil:
https://docs.microsoft.com/en-us/flow/limits-and-configAnd here is another post you might find useful as it is similar:
https://powerusers.microsoft.com/t5/I-Found-A-Bug/Do-Until-only-works-for-1-hour/td-p/59849Cheers!
Joe
- Tim MillerJun 07, 2018Copper Contributor
Here is a screen shot of my do until. basically i want it to send the email then a reminder a day later if the SharePoint item "Review Status" does not equal Assigned. I tried to use the contains 1st reviewer where the list item would either be 1st reviewer completed or 1st reviewer declined, didnt work.
If i am understanding this correctly, I should get an email every 10 min until the list item is changed from assigned. that would continue for 7 days with P7D as the timeout. Is the count (60 seconds) how often it checks the list item then?
- Joseph CollinsJun 07, 2018Brass Contributor
ok, this is saying that it will send the email every 10 min but for only 7 days or 60 tries (whichever comes first). Since there are 6 10min's in an hour, you will get 6 per hour... this will happen for 10 hours until 60 attempts have occurred (assuming it only takes a second to send the email, but yes, if it took 2 seconds to send each one, you'd get 30; depends on server, etc.)