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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Multiple conditions for Do Until

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard