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 / Need to use OR and CON...
Power Automate
Unanswered

Need to use OR and CONTAINS

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I need to create a condition that does the following:

 

ApplicationStatus field does not contain "Status A" OR "Status B" OR "Status C"

 

How would this look in Advanced Mode?

Categories:
I have the same question (0)
  • faustocapellanj Profile Picture
    1,662 on at

    Hi @Anonymous

     

    Your condition might look like the expression below:

    @or(not(contains(triggerBody()?['ApplicationStatus'], 'Status A')),not(contains(triggerBody()?['ApplicationStatus'], 'Status B')),not(contains(triggerBody()?['ApplicationStatus'], 'Status C')))

    One way you can learn to build these types of expressions is by creating the condition in basic mode and then switch to advanced mode. Copy the expression and paste it in your favorite text editor; I use Notepad++. Also, check out the Workflow Definition Language scheme for Azure Logic Apps since all the Flow expressions are based on them. In your case, check out the Logical Functions section.

     

    Regards,

    Fausto Capellan, Jr

     

     

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

    Hi @Anonymous,

     

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

    Further, could you please show a bit more about the ApplicationStatus field that you mentioned?

     

    I agree with @faustocapellanj's thought almost, I assume that the ApplicationStatus column is a Choice type column, I have created a SharePoint list on my side and the data structure of it as below:7.JPG

     

     

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

    • Add a "When an item is created" trigger.
    • Add a Condition, click "Edit in advanced mode", type the following formula:
    • @or(not(contains(triggerBody()?['ApplicationStatus']?['Value'], 'Status A')),not(contains(triggerBody()?['ApplicationStatus']?['Value'], 'Status B')),not(contains(triggerBody()?['ApplicationStatus']?['Value'], 'Status C')))
      Within "If/yes" branch of Condition, add a "Send me an email notification" action.

    Image reference:8.JPG

    The flow works successfully as below:9.JPG

     

     

    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

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 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard