Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch multiple object in a single GET call

eashu
Member
0 Kudos

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.

  • SAP Managed Tags:
1 REPLY 1

RalfHandl
Product and Topic Expert
Product and Topic Expert
0 Kudos

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')

  • SAP Managed Tags: