Skip to main content

Notifications

Community site session details

Community site session details

Session Id : xrh758ppMZNTI11t1dRz/5
Power Automate - Power Automate Mobile App
Answered

"or" expression syntax

Like (1) ShareShare
ReportReport
Posted on 27 Nov 2017 20:33:59 by 33

I am trying to create a conditon in Flow where I look at a field in a sharepoint list and if the data in the field is either "open' or "pending" the conditon is true.

 

However, I an struggling to understand the "or" expresion syntax within flow

 

Can someone help explain what is needed in the expression1 and expression2?

 

thanks,

 

Todd

 

  • thanke Profile Picture
    33 on 28 Nov 2017 at 13:51:46
    Re: "or" expression syntax

    Thanks.  Iwas trying otuse the "Edit in basic mode".  Is that not possible?  If not, can you help me understand when you would use the "Edit in basic mode"?  I would think I shoule be able to select the filed in the Sharepoint list as the first "Choose a value" and then select is equal to.  From here I would use the Expression option "or(expression1,espression2)"  when I select the second "Choose a value".  I just don't know what to use for "expression1 or expression2".  I am not familar with JSON and was hoping to keep it simple within the basic edit mode.  Is that not possible?

     

    Screenshoot below

     

    flow example.JPG

     

    Thanks

    Todd

     

  • Verified answer
    v-xida-msft Profile Picture
    on 28 Nov 2017 at 09:32:33
    Re: "or" expression syntax

    Hi @thanke,

     

    Could you please share a screenshot of your flow’s configuration?

    Which data type does the field that you mentioned belong to in your SharePoint list?

    Further, could you please show a bit more about expression1 and expression2?

    I have created a SharePoint list on my side and the list include the filed which is a Choice type column. The value of Choice type column includes “Open”, “Pending” and “Complete”.

     

    I have made a test on my side and please take a try with the following workaround:15.JPG

    Within Condition box, click “Edit in advanced mode”, type the following formula:

     

    @or(equals(items('Apply_to_each')?['Status']?['Value'], 'Open'),equals(items('Apply_to_each')?['Status']?['Value'], 'Pending'))

     

    The flow works successfully as below:14.JPG

     

    More details about Or expression, please check the following article:

    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

     

     

    Best regards,

    Kris

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard

Featured topics

Loading started