cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
karl_oliverio
Level: Powered On

Do Until Advance Mode with multiple conditions

Hi, 

 

I have a flow action Do until having a condition 'Status is equal to approved'. Inside the do until, i have an approval, if the outcome is approve, status will be changed to approved; but if outcome is not equal to approve, it will check if the outcome is reject; if yes, the status will be rejected otherwise status will be request an update. I want to terminate the do until when the status is rejected. How can i write this in condition in advance mode? 

 

Status is equal to "Approved" and Status is not equal to "Request an update"

 

I have this code but it think its not correct:

@and(equals(body('Get_item_4')?['TDN_x0020_Status']?['Value'], 'Approved'),not(equals(body('Get_item_4')?['TDN_x0020_Status']?['Value'], 'Rejected')))

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Do Until Advance Mode with multiple conditions

Hi @karl_oliverio ,

 

Could you share more details on your scenario?

 

It seems that you have a Do until loop in the flow, and the condition is Status is equal to Approved. Do you want to wait until the approval is approved?

 

Are you using Premium approval type with three Response options? Approve, Reject, Request on update.

 

Besides, if you want to terminate the loop, I am afraid that you cannot add terminate action within the loop.

 

I have figured out the following flow for your reference.

1.PNG2.PNG

 

Best regards,

Mabel         

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: Do Until Advance Mode with multiple conditions

Hi @karl_oliverio ,

 

Could you share more details on your scenario?

 

It seems that you have a Do until loop in the flow, and the condition is Status is equal to Approved. Do you want to wait until the approval is approved?

 

Are you using Premium approval type with three Response options? Approve, Reject, Request on update.

 

Besides, if you want to terminate the loop, I am afraid that you cannot add terminate action within the loop.

 

I have figured out the following flow for your reference.

1.PNG2.PNG

 

Best regards,

Mabel         

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 181 members 5,596 guests
Please welcome our newest community members: