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

Notifications

Announcements

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 248 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 207 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 101 Super User 2026 Season 1

Last 30 days Overall leaderboard