Hello,
I have a flow that sends an email out and starts an Approval when a form is submitted. There is a parallel branch to the Approval and email with a delay, an Item created in a SharePoint list, and a "Do Until" action to send a reminder email every 5 days until the Approval is complete. The list is for follow-ups and tracking of employees who don't respond to the Approval, and there is an action to update the list once the task is complete.
I'm having two problems.
Once the Approval is complete the Do Until continues to run for the set interval period, sends an email, and then completes the flow. This is the opposite of what we would really like to see; we need to have the Do Until stop as soon as the Approval is complete so that it won't send another email and will immediately update the SharePoint list.
Basically, is there a way to have the Do Until stopped/finished as soon as the Approval is complete, and then further have the item in that branch also updated? For clarification, this is what it looks like:
I tried moving the Update Item action to the Approval branch but Power Automate won't allow me to use the ID from items created in a different branch.
Any help with this would be sincerely appreciated!
Hello,
I made it, creating a child flow in which I put all the actions you have in the right branch of your main flow (in the red square)
Example :
This will ensure that the main flow is not blocked.
Best Regards,
Thank you for the input! The "Task marked complete" action is the variable being set to true, but it doesn't immediately stop the Do Until loop. The loop continues to run until its next interval (set to 5 days), performs its action, and then stops. I've had employees come back to me telling me they're getting a reminder email even though they completed the approval and it's very frustrating.
With regards to using a variable to pass the ID, could you please explain how that might be done? I'm not very fluent with variable usage.
Thank you so much!
Hi @mbowline ,
Q1:
Once you set the variable "approvalDone" to true after the approval is completed, the 'do until' loop should stop.
Q2:
You could consider initializing a variable to pass the ID, similar to how "approvalDone" is used to pass the approval result.
Best Regards,
Bof
WarrenBelz
146,601
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional