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

$schemaversion=2.1 for nested functions using the Odata API

(0) ShareShare
ReportReport
Posted on by 2

Hello everyone,

I'm using the following web address to request information from our Business Central instance, specifically to find a customer by name:
https:/api.businesscentral.dynamics.com/v2.0/{_businessCentralOptions.TenantId}/{_businessCentralOptions.Environment}/ODataV4/Company('{_businessCentralOptions.CompanyName}')/Customer

Currently, I use ?$filter=contains(Name, '{customerName}') to look up a customer based on a part of their name. However, I also want the search to be case-insensitive. According to this documentation: https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/webservices/use-filter-expressions-in-odata-uris, I should be able to achieve this by nesting tolower() and contains() like this: ?$filter=contains(tolower(Name), '{customerName}'), using schema version 2.1. But I'm having trouble figuring out how to use version 2.1, as changing it in the URL or in Business Central under Web Services doesn't seem to work.

 

 

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    97,236 Super User 2026 Season 1 on at
    Hi, this is inherently case-insensitive if you use 'eq' method.
    For example,
    ?$filter=Name eq 'adatum corporation'
     
    Hope this helps.
    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