Symptom
You wish to query an API entity ToDO Category 26 (Category_ID CATEGORY_LMS_LEARNING_ALERT) using the bellow mentioned GET request query:
Where the expectation is the API call to return data from "Learning Approvals" tile, but instead, the incorrect data - “-1” or “null” are being returned.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
- SAP SuccessFactors HXM Suite
- Odata API
- Learning Approvals
Reproducing the Issue
- Try to query above mentioned API call in Postman
- You will see the result is “null” and/or count “-1”
Cause
The "Learning Approvals" tile is not covered by the API. ToDo category of Learning Approvals tile is 60 rather than 26, which is not support in ToDo API.
Resolution
More information on this topic can be found at the OData API guide: List of To-Do Categories - SAP Help Portal
Keywords
Odata API, ToDo entity, CATEGORY_LMS_LEARNING_ALERT, CATEGORY_LMS_APPROVAL, Learning Approvals , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , LOD-SF-INT-API , API & Adhoc API Framework , Problem