SAP Knowledge Base Article - Public

3422616 - ToDoEntryV2 Entity not fetching all the completed Forms

Symptom

You are trying to query ToDoEntryV2 Entity to fetch all the completed forms from SF ODATA API but you are not getting all the records.

Disclaimer: 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 HCM Suite

  • Integrations
    • Integration 
      • ODATA API

Reproducing the Issue

Run the below query by Get method using Postman or CPI

  • https://<API Server>/odata/v2/TodoEntryV2?$format=json&$filter=userId eq 'XXX34' 

Response: 

  • {  
                 "d": {
                              "results": []    
                        }
    }

When we check in the SF Instance we have multiple completed forms

Cause

This is an expected behaviour, by system design.

Resolution

For TodoEntryV2 entity not all completed Todo items will be returned.

For completed ToDo items with status=3 will only be returned via API if the completed date is within last 30 days.

See Also

KBA-2758003 - Categories not supported by ODATA entity TodoEntryV2 - SAP SuccessFactors Odata API 

Keywords

ToDoEntryV2, OData API Framework , LOD-SF-INT , Integrations, Expected Behaviour, ToDo, ODATA, API , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HXM Core 2311 ; SAP SuccessFactors HXM Suite 2311