Symptom
You are querying some workflow information via API, and you noticed the changedData field does not returns the \"newValue\" nor the \"oldValue\".
Environment
-
SAP SuccessFactors HCM Suite
Cause
This is expected behavior, changedData field is not meant to return all changed information. The name of 'changeData' might be mis-leading. It doesn't mean all the changes. It only present key information to help user understand what data this workflow request is about. And if those key information has changes, 'changeData' will include both old and new value.
The "changeData" field is for Advanced Todo UI only.
Resolution
If you want to specify changed field in changedData, there is an workaround you can do, to configurate this in Advanced To-do key Details.
Steps are below:
- Go to Manage Data
- Select Advanced To-Do Key Details
- Create an entry selecting the Object, and the field you are expecting to return in the changedData field
- In "Show Code" dropdown, select 'Yes'.
NOTE: Advanced To-Do Key Details supports only position object as of now, If you think other MDF objects and HRIS elements like JobInfo needs to have similar behavior then please submit an enhancement request. Reference - How to Submit Enhancement Requests for SAP SuccessFactors Products.
See Also
· link - SAP SuccessFactors Employee Central OData API: Reference Guide
Keywords
workflow API, TodoEntryV2, changedData field, not returning data as expected, "changedData": null , "changedData": "[{\"label\":\"Name\",\"newValue\". , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem