11-24-2023 10:58 AM
Hi All,
Currently, we are making a GET call to fetch learning details for a specific user profile, like $filter=criteria/userID eq 'test' and criteria/curriculumID eq 'learningID'. For this filter condition, we are getting the correct response from ODATA, which is good.
But now our requirement is to fetch multiple learning details of a user in a single GET call. For this, I am filtering like
?$filter=(criteria/userID eq 'Test') and (criteria/curriculumID in ('learning1', 'learning2')) but this is failing and getting below error
Can anyone please suggest the syntax to get multiple learning details.
11-24-2023 12:18 PM
The "in" operator is pretty new and apparently not yet implemented by the API you are using. Try the long/old form with "or":
?$filter=(criteria/userID eq 'Test') and (criteria/curriculumID eq 'learning1' or criteria/curriculumID eq 'learning2')