Forum Discussion
I’m not planning to write the file as I need to make some transformations after the header and data have been merged.
If I had to write it off, it would have been achievable via excel formatter itself with the below settings:
And the file written would be as below:
Hello @darshthakkar,
If I’m understanding correctly you can achieve it by using the sl.zipObject function.
Before that you have to turn the keys and the values in two separate arrays.
In the router we are separating the keys (the first object) and the values by using the snap.in.totalCount function.
Then, we append the keys to each object values and finally we zip them together.
Please refer to the attached pipeline below:
sl-comm-excel-headers_2023_06_12.slp (9.5 KB)
Let me know if this helps.
Regards,
Aleksandar.
- darshthakkar3 years agoValued Contributor
Thank you @AleksandarAngelevski, trying this right away and will keep you posted with the findings.