Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

ODATA URI filter IN and NOT IN expressions?

(0) ShareShare
ReportReport
Posted on by 20

Hey guys, 

I have a powershell script that calls a specific URI. I have the standard eg and gt etc. But I want to be able to add a NOT IN {'A' 'B' 'C'} expression ala SQL, but get the following error in POSTMAN when I try to test it with 

not(Property in ('FOO', 'BAR'))
Client requests that contain \"Not\" filter options are not supported by Dynamics 365 Business Central OData web services.
  • Suggested answer
    DAnny3211 Profile Picture
    9,278 Moderator on at
    RE: ODATA URI filter IN and NOT IN expressions?

    hi

    the IN should work perfectly:

    example:

    $filter=YOURFIELD in ('10000','20000')

    the NOT is not expected on an odata query, but you could get around it this way:

    $filter=(YOURFIELD  ne '10000') and (YOURFIELD ne '20000')

    regards

    DAniele

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans