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

Issue with Filtering on Custom Field in Business Central API

(2) ShareShare
ReportReport
Posted on by 4

Hello Everyone,
 

I am facing an issue while retrieving records from the custom API page in Business Central.

When we use Get Record by ID, the custom field (SageNo) is returned correctly in the response.

However, when we try to retrieve the same record using $filter on the SageNo field, the record is not returned for certain values. Interestingly, filtering works for some SageNo values but fails for others, even though:


  • The field exists in the API pag

  • The value is present in the record

  • The same company and environment are being used

  • The same filter syntax is applied
     

  • Example:

  • GET by ID → Record is returned and SageNo is visible

  • GET with $filter=SageNo eq '161129' → No record found (for some values)

  • Filtering works for other SageNo values


  •  
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    97,264 Super User 2026 Season 1 on at
    That's a bit strange. Can you find it using the IN operator?
    PS: Dynamics 365 Business Central: How to use the OData V4 IN operator in web service queries
     
    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…

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,090 Super User 2026 Season 1

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,090 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,277 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans