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 / Adding NOT condition i...
Power Automate
Answered

Adding NOT condition in a filter query

(0) ShareShare
ReportReport
Posted on by 53

Hi,

I want to add a "not" clause in my filter query. This is to exclude certain statuses of the records I'm trying to obtain. The filter I have is the following:

Strategic_Customer__c eq TRUE and (VAR_Domain__c eq 'test.com') and not (Krow__Project_Status__c eq 'Canceled' or Krow__Project_Status__c eq 'Complete')

 

I want to exclude any records that have the status 'Canceled' or 'Complete. But when I ran the flow, I got a bad request error. When I removed the "not", the flow worked fine. I was wondering is the syntax above correct for using "not"?

 

Jason

 

Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Will this work? I replaced the combinator of "NOT and OR" with "AND and ne"

     

    Strategic_Customer__c eq TRUE and (VAR_Domain__c eq 'test.com') and  Krow__Project_Status__c ne 'Canceled' and Krow__Project_Status__c ne 'Complete'

     

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @JasonYeung 

    I don't believe that the not operator is supported in Power Automate OData filters for SharePoint.

  • Jason Yeung Profile Picture
    53 on at

    Hi @SudeepGhatakNZ ,

     

    Thanks! I tried this and it works.

     

    Sincerely,

     

    Jason

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard