Avatar

Correct answer by
Community Advisor

Hi Mikael,

In advance tab of Data loading activity

Add below code to get column header information. Once you get comma separated list of columns header just split this and save it in Enumeration. This is also dynamic in nature so number of columns can vary this will give you proper result.

1.  var colHeader = activity.source.dataSourceConfig.sampleLines.line[0]

2.  var arrayCol = colHeader .split(',') ;

3. Use for loop to have values and save this in ENUM.

I hope this helps.

Thanks,

Kapil

View solution in original post