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 : fiWATwGDhaHO7qkChsTEQO
Power Automate - Building Flows
Answered

Trigger Condition - Help writing condition with OR

Like (0) ShareShare
ReportReport
Posted on 20 Jul 2020 12:31:28 by 167

I have a SharePoint list with a choice field. There are several choices for the user to select from.

 

If I set this as my trigger condition

@contains(triggerBody()?['Action']?['Value'],'In Progress')    Runs correctly. 

@contains(triggerBody()?['Action']?['Value'],'Pending')    Runs correctly.

However, I am trying to have the workflow run if the ACTION field contains either; "In Progress" or "Pending"  Not sure how to write it. No matter what I've tried Power Automate says I have an error. 

 

Ex: @or(contains(triggerbody()?[‘Action’],['Value'],'In Progress'),contains(triggerbody()?[‘Action’],['Value'],'Pending'))

 

I have the same question (0)
  • Portland Profile Picture
    167 on 20 Jul 2020 at 14:03:46
    Re: Trigger Condition - Help writing condition with OR

    That was it! Working perfectly. Thank you

  • Verified answer
    Pstork1 Profile Picture
    67,961 Most Valuable Professional on 20 Jul 2020 at 13:38:06
    Re: Trigger Condition - Help writing condition with OR

    Got bit by the cut and paste bug.  Try this on e instead the last one had right and left specific single quotes around Action.

    @or(equals(triggerBody()?['Action']?['Value'],'Pending'), equals(triggerBody()?['Action']?['Value'],'In Progress'))
    
    
  • Portland Profile Picture
    167 on 20 Jul 2020 at 12:52:09
    Re: Trigger Condition - Help writing condition with OR

    Returns this error message:

    The power flow's logic app flow template was invalid. The template language expression 'or(equals(triggerbody()?[‘Action’],['Value'],'In Progress'),equals(triggerbody()?[‘Action’],['Value'],'Pending'))' is not valid: the string character '‘' at position '25' is not expected.

  • Pstork1 Profile Picture
    67,961 Most Valuable Professional on 20 Jul 2020 at 12:40:27
    Re: Trigger Condition - Help writing condition with OR

    Try this trigger condition

    @or(equals(triggerbody()?[‘Action’],['Value'],'In Progress'),equals(triggerbody()?[‘Action’],['Value'],'Pending'))

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 798 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 469 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 333

Last 30 days Overall leaderboard