2377841 - Enrollment Listings API only returns 10 enrollments

SAP Knowledge Base Article - Public

2377841 - Enrollment Listings API only returns 10 enrollments

Symptom

The API call of '/odatav4/public/admin/scheduledoffering-service/v1/EnrollmentListings' only returns a maximum of 10 enrollments although there are more than 10.

Environment

SuccessFactors Learning Management System (LMS) - All Supported Versions

Reproducing the Issue

  1. Get your admin token
  2. Setup the API with the admin token
  3. Do a basic call such as https://{LMS-URL}/learning/odatav4/public/admin/scheduledoffering-service/v1/EnrollmentListings?$filter=criteria/scheduleID eq 897129001
  4. Only 10 enrollments will be returned

Cause

Only returning 10 is as designed.

Resolution

Only returning 10 is as designed, thus the API call needs to be modified.

A parameter of $top needs to be added as shown in the screenshot.  $top = n where n is the amount of users that need to be pulled. "n" can be larger than the amount of users enrolled.

Capture.JPG

Keywords

OData API, enrollment, token, OData, EnrollmentListings , KBA , LOD-SF-LMS , SuccessFactors Learning , LOD-SF-LMS-TLS , Web Services & Tools , Problem

Product

SAP SuccessFactors Learning all versions