odata icon indicating copy to clipboard operation
odata copied to clipboard

Unable to create filter for Enum value

Open omniavincitlabor opened this issue 7 years ago • 2 comments

Hi,

I tried to compose a filter for an enum value, but was not successful.

How do I correctly filter for an enum value?

I tried sth. like: http://localhost:8080/example.svc/Schools?$filter=type eq 'SECONDARY' and http://localhost:8080/example.svc/Schools?$filter=type eq SDL.OData.Example.SchoolType'SECONDARY' but I always get "The URI contains an incorrectly specified $filter option"

What am I doing wrong?

omniavincitlabor avatar May 02 '17 20:05 omniavincitlabor

Does anybody found a workaround? (except change type to String)

iDash avatar Sep 19 '17 09:09 iDash

@vinayknl may I ask you to add bug label to this issue? Seems, this is one of major limitation of using SDL.

iDash avatar Oct 23 '17 11:10 iDash