Unable to Set Correlation ID field using Import Set API

Gowtham Kodali
Tera Contributor

Hi All,

 

I am trying to set the Correlation ID field value using the import set API, even-though the value is sent in the Request and it is mapped in the transform map, I am not able to set the value in the Correlation ID field it is always empty any suggestions on setting this field value

 

Thank you

6 REPLIES 6

Eshwar Reddy
Kilo Sage

@Gowtham Kodali
remove the field mapping
let's try using an "onBefore" script in the transform map. 

Code you can use:

var cr = source.u_correlation_id.toString(); -> replace u_correlation_id with your field

if (cr)

target.correlation_id = cr;

 

Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution

Hi Eshwar

I tried it in the onbefore script its not working