SAP Knowledge Base Article - Public

3283537 - WorkFlow field changedData is not returning data from the changed fields in OData API

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:

  1. Go to Manage Data
  2. Select Advanced To-Do Key Details
  3. Create an entry selecting the Object, and the field you are expecting to return in the changedData field
  4. 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

3283537 - WorkFlow field changedData is not returning data from the changed fields in OData API - SAP for Me 

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

Product

SAP SuccessFactors HCM Suite all versions