cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LMS API - How to get Learning History for a component (course) instead of User

Former Member
0 Likes
2,724

I am trying to get the Learning history of a specific course, but the API request using the "Learning History" service always expects the "targetUserID" value. How to skip this and get all results based on the component Id.

My Request:

https://xxxx.plateau.com/learning/odatav4/public/user/learningHistory/v1/learninghistorys?$filter=(c... eq 'YYY_1807_ssssssssss')&select=componentID&$top=50

Response i am getting:

{ "error": { "code": null, "message": "ERROR: User ID cannot be null\n", "operationStatusDetail": { "status": "FAILED", "operation": null, "warnings": [], "errors": [ { "code": "500", "message": "User ID cannot be null", "fieldName": null } ] } } }

Please help

View Entire Topic
SF-Chris
Product and Topic Expert
Product and Topic Expert

As Charles stated, API calls are built to not replace reports. You would have run reports but even then you might need to filter as this could be a lot of data. In case you are looking for full extracts of learning history, I suggest to look at Data Services. https://help.sap.com/viewer/e2f468d6be73499f8b4ceb16a9828d66/latest/en-US/97e84f43505d48088ce5edec12...