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 :
Small and medium business | Business Central, N...
Suggested Answer

ODATA URI filter IN and NOT IN expressions?

(0) ShareShare
ReportReport
Posted on by 24

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.
I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,401 Super User 2026 Season 1 on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,170 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,283 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,104 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans