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 Kudos
2,626

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

Accepted Solutions (0)

Answers (2)

Answers (2)

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...

Former Member
0 Kudos

Thanks for the response. Does a function exists in Learning module to pull Learning history of all users?

Mohsinkhan
Explorer

Were you able to find the solution.

manojramesh47
Explorer
0 Kudos

Hi Jawahir,

Did you manage to get the learning history of all users or is it not possible. I could only get for individual uses via API.

Thanks,
Manoj.