cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving LearningHistories via Learning OData API - Data Missing in Response

samadh90
Explorer
0 Kudos

Hello SAP SuccessFactors Learning Community,

I've encountered an issue while trying to retrieve competency assessments for completed courses/items using the Learning OData API. Despite having confirmed the presence of competency assessment data in the database, I am unable to get this data through the API endpoint.

Here is the API endpoint I'm using:

/public/user/learningHistory/v1/LearningHistories?$filter=criteria/itemID eq '{{item_id}}'&$select=componentTypeID,componentID,userCompetencyAssessments/competencyID,userCompetencyAssessments/competencyDescription,userCompetencyAssessments/masteryLevel,userCompetencyAssessments/competencyAssessmentDateTimeOffset

From this request, I successfully retrieve componentTypeID, componentID and some other values if mentioned in the select, but the userCompetencyAssessments part of the response does not show any data, despite its availability in the database.

The documentation I've referenced confirms userCompetencyAssessments should provide Competency Assessment Information as part of the Learning OData API, meant to encompass a collection of competency assessments related to user learning history​​.

I've ensured API permissions are correctly set, checked for any version-specific requirements, and consulted the documentation for any additional parameters or configuration needed but have not found a solution to this issue.

Has anyone faced a similar challenge or can offer insights into why "userCompetencyAssessments" data might not be appearing in the API response, despite being present in the database? Any guidance or suggestions on troubleshooting this issue would be greatly appreciated.

Accepted Solutions (0)

Answers (0)