Skip to Content
0
Sep 04, 2023 at 02:36 PM

IN operator is not working in ODATA V4 service when using $filter

146 Views

Hello,

We are currently implementing OData V4 services. I came across this knowledge article 3223219 while looking for a format to use IN operator in our filter uri.

Currently we are using this filter,

?$filter=(CA eq '0001' and (PC eq '0010101010' or PC eq '0010101011'))

And want to convert this to below using IN

?$filter=PC in ('0010101010', '0010101011')

However, I get the error - Invalid token at position 4

Hence I wanted to check if the article https://me.sap.com/notes/0003223219 is still valid or do we have any other way to handle this ?

Best Regards,

Sankari