3

When I use odata like this: $filter=startswith(tolower(firstName),tolower('A')) it doesn't work.

I want to know that whether tolower or toupper can work with startswith?

shawzt
  • 31
  • 1
  • 3

1 Answers1

6

That should work.

As an example on a live service, try this:

http://services.odata.org/v3/OData/OData.svc/Products?$filter=startswith(tolower(Name),'b')

In that service, there is a Product that has the Name "Bread". If you don't include the tolower call in the URL, you won't get this entity returned. If you do include tolower, the "Bread" product will be included.

Jen S
  • 4,465
  • 1
  • 32
  • 28