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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Embedding an AND condi...
Power Automate
Unanswered

Embedding an AND condition in an OR trigger condition

(0) ShareShare
ReportReport
Posted on by 12

I'm currently creating multi level approval flows (the item is created then goes for Head of Service approval and then Director approval), which I've broken into separate flows for each level of the approval process and the responses update a SharePoint list.

 

Each flow starts with a 'When an item is created or modified' trigger, which I want to only trigger when it hasn't already been through that stage of the approval process or if the person who has raised the request has submitted more information. It seemed like it was working, but I tried to break it apart and then it got stuck in a loop. I've tried rewriting it, but it's not valid. Can anyone help me with getting this trigger condition to work?

 

@OR(and(equals(triggerOutputs()?['body/HoSApproval'],'More information required'),equals(triggerOutputs()?['body/Resubmitted'],'Yes')), and(equals(triggerOutputs()?['body/HoSApproval'],null)))

Categories:
I have the same question (0)
  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at
    Re: Embedding an AND condition in an OR trigger condition

    Hi @HannahMS 

     

    Pls try this one:

    @OR(and(equals(triggerOutputs()?['body/HoSApproval'],'More information required'),equals(triggerOutputs()?['body/Resubmitted'],'Yes')),empty(triggerOutputs()?['body/HoSApproval']))

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • HannahMS Profile Picture
    12 on at
    Re: Embedding an AND condition in an OR trigger condition

    Hi @ManishSolanki 

     

    That seems to have done it - thanks!!!

     

    How would I then do the next stage of approval where it will check the same 'More information' values, but when it checks if the 'Director Approval' value is null it will also need to check that the HoS is showing 'Approved'?

     

     

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at
    Re: Embedding an AND condition in an OR trigger condition

    Hi @HannahMS 

     

    Could you please explain a bit?

     

     

  • HannahMS Profile Picture
    12 on at
    Re: Embedding an AND condition in an OR trigger condition

    Hi @ManishSolanki 

     

    So once a request has been approved by the Head of Service, it triggers a whole new flow to get approval from the relevant Director. Because it's a separate flow with a new trigger, I want to make sure if only triggers if the Director approval value is null, but the Head of Service value is set to 'Approved'. It still has the same 'More information' condition though.

     

    Is it something like this?

    @OR(and(equals(triggerOutputs()?['body/DirectorApproval'],'More information required'),equals(triggerOutputs()?['body/Resubmitted'],'Yes')),(and(equals(triggerOutputs()?['body/HoSApproval'],'Approved'),empty(triggerOutputs()?['body/DLTApproval'])))

  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at
    Re: Embedding an AND condition in an OR trigger condition

    Hi @HannahMS 

     

    Pls try this one:

    @OR(and(equals(triggerOutputs()?['body/DirectorApproval'],'More information required'),equals(triggerOutputs()?['body/Resubmitted'],'Yes')),and(equals(triggerOutputs()?['body/HoSApproval'],'Approved'),empty(triggerOutputs()?['body/DLTApproval'])))

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • HannahMS Profile Picture
    12 on at
    Re: Embedding an AND condition in an OR trigger condition

    Hi @ManishSolanki 

     

    That seems to have done the job! I really, really appreciate your help with this 😃

     

    Thanks

     

    Hannah

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard