How to use search.in in $filter for APIM

Leonardo Machado 0 Reputation points
2025-01-09T12:03:08.3233333+00:00

Hello, All,

When I try to use in $filter in APIM (via http GET as a query string parameter):

search.in(Var, 'Val1, Val2')

(I also tried search.in(Var, 'Val1,Val2', ',') with the same result)

I get an error: "Invalid token detected in position 0"

But when I use for the same query:

Var eq 'Val1' or Var eq 'Val2'

I get the expected result. What am I doing wrong? I have this documentation as reference: https://learn.microsoft.com/pt-br/azure/search/search-query-odata-search-in-function

Thanks in advance.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,314 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.