web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Multiple conditions fo...
Power Automate
Unanswered

Multiple conditions for Do Until

(0) ShareShare
ReportReport
Posted on by

Hi,

 

Are we able to add multiple conditions using a "Do Until?"

 

I have two approvals.  I want the approval to continue to run until first approval has been rejected or second approval has been accepted.  My or condition is incorrect and I'm not sure how to update it.

 

@equals(body('Second_Approval')?['outcome'], 'Approve') or (body('First_Approval')?[outcome], Reject)

 

Thanks in advance.

 

 

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at
    Hello @Anonymous

    Can you share a picture of the if statement.

    You’re missing the single quotes around Reject.

    —Josh
    If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others
  • Community Power Platform Member Profile Picture
    on at

    Hi Josh,

     

    I've added the single quotes and still got an error for my syntax.

     

    @equals(body('Second_Approval')?['outcome'], 'Approve') or (body('First_Approval')?[outcome], 'Reject')

     

    Below is my flow.

     

    If First Approval = 'Reject' OR Second Approval is 'Approve' terminate the "Do Until"

     

    MultiApprovalFlow.png

     

    DO Until.png

  • Verified answer
    fchopo Profile Picture
    8,003 Moderator on at

    Hello @Anonymous 

    You should use an expression like this:

    @or(equals(body('Second_Approval')?['outcome'],'Approve'),equals(body('First_Approval')?['outcome'],'Reject'))

    Hope it helps!

    Ferran

  • Killua Profile Picture
    3 on at

    Many thanks sir, this is exactly what I was searching for.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard