
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')))
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.
Best regards,
Mabel