
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
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