SAP Knowledge Base Article - Public

2804150 - Unable to retrieve segment details through an API call

Symptom

Admin would like to retrieve segments information of the class through the API /learning/odatav4/public/admin/scheduledoffering-service/v1/Segments. However, an error happens:

{

"error": {
"code": null,
"message": "The property 'criteria', used in a query expression, is not defined in type 'com.sap.lms.odata.Segment'."
}
}

Environment

SAP SuccessFactors Learning

Resolution

As per confirmation from Product Management, we currently don't have an API to retrieve the class segment details.

Alternatively, to suggest a different system behavior, it would be possible to have an enhancement request created for it (as per KBA 2090228), where the Learning Product Management team can further review and assess the requested functionality to be considered in a future release. You can also check the possibility of a custom solution, by engaging your Partner or SAP Professional Services (KBA 2149831).

See Also

Keywords

lms, sf, sfsf, api, odata, segment, slot, class, schedule, offering, error, The property 'criteria', used in a query expression, is not defined in type 'com.sap.lms.odata.Segment', com.sap.lms.odata.Segment , KBA , LOD-SF-LMS-ODA , Web Services OData , Problem

Product

SAP SuccessFactors Learning all versions