in oncomplete transform script how to retrieve the source field map value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2019 01:36 AM
in oncomplete transform script how to retrieve the source field values
i tried like
var xyzparent= source.field_name.toString(); o/p is undefined. can someone help me how to retrieve the field_name value. I have mapped under field maps -- source -- field_name. I am loading some value as source field. it loading in import set. but not able to fetch it.
i just need in oncomplete transform script how to retrieve the source field values

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2019 01:42 AM
it should be in an onAfter script not oncomplete.
onComplete will be executed after all the rows are transformed. so you will not have access to individual rows.
refer the link below for further details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2019 01:54 AM
i want to get the source field value after completing the transform map. hence i tried with oncomplete. if onafter also how should i retreive latest imported data

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2019 01:59 AM
did you try the below line of code in onAfter? any issue happening ?
var xyzparent= source.field_name.toString();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2019 02:02 AM
yes i tried, it is not working. for this line, no log also coming in onafter.
but oncomplete, log is coming as undefined