Symptom
LMS API learning/odatav4/public/admin/curriculum-service/v1/CurriculumItemDetails is returning no more than 50 items in a curriculum.
Environment
SAP SuccessFactors Learning
Reproducing the Issue
1. Run the CurriculumItemDetails API to query a curriculum with more than 50 items;
2. Count the items returned for this curriculum;
3. Compare with curriculum contents number and only 50 items are returned by API.
Cause
There is existing limit of max 50 records when calling this API learning/odatav4/public/admin/curriculum-service/v1/CurriculumItemDetails.
Resolution
This is expected behavior for the API.
If you want more than 50 items in a curriculum returned, you can call same API for multiple times and in URL add '&$skip=50'.
Then system will return next 50 records (if applicable) and you can increase the number next time if more than 100 records exist.
e.g.:
1st API call - call without skip
2nd Api call - call with $skip=50
3rd Api call - call with $skip=100
4th Api call - call with $skip=150
...
See Also
Get Curriculum Item Status Sample Call | SAP Help Portal
user/curriculum-service/v1 Metadata
KBA2986690 UserCurriculumStatuses odata API filter $top is not working as expected.
Keywords
curriculum-service, CurriculumItemDetails, ODATA, API, Webservice,learning/odatav4/public/admin/curriculum-service/v1/CurriculumItemDetails, limitation, $skip , KBA , LOD-SF-LMS-ODA , Web Services OData , Product Enhancement