cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos
2,129

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