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 / OData filter with mult...
Power Automate
Answered

OData filter with multiple AND and OR

(0) ShareShare
ReportReport
Posted on by

Hello everyone, really need someone to look at this query because I can't see what's wrong here. 

 

I am using the following List Rows OData filter on the Dataverse table Opportunities:

 

statecode eq 0 and hx_orderid eq null and (hx_orderstatus ne '1100' or hx_orderstatus ne '1110' or hx_orderstatus ne '1120')

 

Both hx_orderid and hx_orderstatus are text fields and I want to list every row where:
Active,

hx_orderid is empty,

and hx_orderstatus should not equal 1100, 1110 or 1120. 

 

But it ignores the last part and lists these orderstatus rows. 

Categories:
  • Verified answer
    POJA85 Profile Picture
    on at

    Ok it seems like I finally found a solution (even though I feel the other version should have also worked). 

     

    statecode eq 0 and hx_orderid eq null and not contains(hx_orderstatus,'1100') and not contains(hx_orderstatus,'1110') and not contains(hx_orderstatus,'1120')

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard