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

Community site session details

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

in-filter expression not working in odata/api

(1) ShareShare
ReportReport
Posted on by 4
I'm having issues with the in-filter expression in odata. It is simply not working in both an api endpoint or a odata web service.
 
Is is documented here:
 
When I try
 
query?$filter=resourceNo in ('USERA','USERB')
 
the filter is not applied at all (no error, simply the results as if no filter is applied at all)
If I use
 
query?$filter=(resourceNo eq 'USERA' or resourceNo eq 'USERB')
 
it works as expected.
 
This is against latest version of cloud sandbox (23.2.14098.14274) and the field is a normal code[20] field, no flowfield or something (although that shouldn't matter).
An I doing something wrong here or is this an issue in BC?
I have the same question (0)
  • Nick Profile Picture
    4 on at
    in-filter expression not working in odata/api
    The 404 in your test is because you miss the ? before the $filter statement. But thanks for testing.
  • Suggested answer
    YUN ZHU Profile Picture
    90,019 Super User 2025 Season 2 on at
    in-filter expression not working in odata/api
    Hi, I remember BC does not support in-filter expression. I just tested it again and it does not work. I checked the information on the Internet, and except for Microsoft's documents, no other experts mentioned that in-filter expression can be used.
    https://api.businesscentral.dynamics.com/v2.0/c8558e71-6ad8-4fcd-9f29-3ca165b41bbe/Sandbox223/ODataV4/Company('My%20Company')/VendorLedgerEntries$filter=Entry_No in (1760,1762,1768)
    Hopefully other experts can give you better advice.
     
    Thanks
    ZHU
     

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,725 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,610

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,221

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans