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 / Checking an AND or OR ...
Power Automate
Answered

Checking an AND or OR conditons

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

Hi

 

 I want to evaluate the two condidtions when a certain SharePoint list item is added so add a OR clause include  'High'  .   If there is documentation can you reply with a link. 

 

My code below is invalid btw  ( and yes I tried an OR' as well  !)

 

@equals(triggerBody()['RequestorUrgency']['Value'], 'Urgent') ||  @equals(triggerBody()['RequestorUrgency']['Value'], 'High')

 

Daniel

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Daniel,

     

    Please specify the condition in the format below:

     

    @or(
     equals(triggerBody()['RequestorUrgency']['Value'], 'Urgent'),
     equals(triggerBody()['RequestorUrgency']['Value'], 'High')
     )

    If the 

    triggerBody()['RequestorUrgency']['Value']

    Could return the proper value, then writing the formula in this way should work.

    Currently there is no specifial documentation talking about how to write formula under the condition Advanced mode.

    For the workflow definition language reference, please check:

    Workflow Definition Language schema for Azure Logic Apps

    Regards,

    Michael

  • Verified answer
    westerdaled Profile Picture
    670 on at

    @v-micsh-msft wrote:

    Daniel,

     

    Please specify the condition in the format below:

     

    @or(
     equals(triggerBody()['RequestorUrgency']['Value'], 'Urgent'),
     equals(triggerBody()['RequestorUrgency']['Value'], 'High')
     )

    If the 

    triggerBody()['RequestorUrgency']['Value']

    Could return the proper value, then writing the formula in this way should work.

    Currently there is no specifial documentation talking about how to write formula under the condition Advanced mode.

    For the workflow definition language reference, please check:

    Workflow Definition Language schema for Azure Logic Apps

    Regards,

    Michael


     

     

    Thanks very much for the heads up on the correct syntax i should use.

    Hopefully this will help others as it simplies their flows.

     

    Daniel

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Glad to help.

    would it be convent for you to accept the proper post as the solution?

    Doing this should be helpful for the others to find the proper answer more quickly.

     

    Regards,

    Michael

  • westerdaled Profile Picture
    670 on at

    @v-micsh-msft @micheal

     

     

    Yes but how do I do that ..  I can book mark the post and give Kudos but I don't the option to mark as a solution.

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @westerdaled,

     

    Sorry about that.

    I thought you were @Anonymous, is that account alos belongs to you?

    The Accept as solution would only show up for the question asker.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ahhhhhh not for the first time in my life: I don't know who I am!Smiley Mad  I have one identity based ony my client's tenant and one based on my tenant. Ideally I just want to use my Live ID and either remove the one for my tenant or merge it.

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 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard