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 / Handling Multiple Cond...
Power Automate
Unanswered

Handling Multiple Conditions in Flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I need to do the following in my Power Automate Flow...

 

Check values of Manager1 and Manager2 (I am getting the email address from a text field in a Dataverse table)
  If Manager1 exists (is NOT Null/Empty) and Manager2 does not exist (is Null/Empty), then send email to Manager1
  If Manager2 exists (is NOT Null/Empty) and Manager1 does not exist (is Null/Empty), then send email to Manager2
  If values for both Manager1 and Manager2 exist, then send email to Manager2 only
  If both Manager1 and Manager2 are Null/Empty, send Error email and terminate workflow

 

Is there a way to do this without having to nest four (or more) Conditions?

Any suggestions?

 

Thanks,

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Anonymous ,

    You could use expressions in a single condition to create complex conditional criteria

    SudeepGhatakNZ_1-1685488048260.png

     

     

  • Linn Zaw Win Profile Picture
    2,996 on at

    @Anonymous 

    I guess you'll only need one condition step if you use coalesce function.

    If both Manager1 and Manager2 are Null/Empty, send Error email and terminate workflow

    else, send email with coalesce function which will

    • try to use the Manager2 email if it is not null
    • or use Manager1 email if Manager2 email is null

    e.g.

    coalesce(
     outputs('Get_a_row_by_ID')?['body/xyz_manager2email'],
     outputs('Get_a_row_by_ID')?['body/xyz_manager1email']
    )

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for your reply.  I ended up going a different way.  I used four (4) condition actions, in parallel, one for each possibility.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard