Symptom
When using ODATA learningHistory web service call without the filter criteria it fails;
GET /learning/odatav4/public/user/learningHistory/v1/learninghistorys?
You may get the Error
Caused by: org.apache.olingo.client.api.communication.ODataClientErrorException: (null) The URI is malformed. [HTTP/1.1 400 ]
Environment
SuccessFactors Learning Management System (LMS) - All Supported Versions
Reproducing the Issue
Run the call without the filter criteria;
GET /learning/odatav4/public/user/learningHistory/v1/learninghistorys? $filter=criteria/maxNumberToRetrieve eq 10 and criteria/includeDeepLink eq true
Cause
Filter is mandatory for this ODATA learningHistory api call.
The API is not meant for a bulk data extraction or doing a search with wildcards.
The API is meant for accessing a single user's learning history along with a filter to restrict the number of records.
If you are using admin Token then you need to provide targetUserID in the filter.
Use specific user Token then you need not to provide targetUserID in the filter.
This API is designed in such a way that it will allow to access single user's learning history at a time.
Resolution
GET /learning/odatav4/public/user/learningHistory/v1/learninghistorys?$filter=criteria/maxNumberToRetrieve eq 10 and criteria/includeDeepLink eq true
See Also
LRN-54994
Keywords
Learning Web Services, learningHistory, ODATA , KBA , LOD-SF-LMS , Learning Management System , Problem