Forum Discussion
bojanvelevski
2 years agoValued Contributor
Hi vgautam64 ,
Try the following expression in a mapper:
$group.reduce((acc,curr,ind)=> acc.extend(curr.mapKeys((val,key)=>key+ind)),{})
Let me know what you think.
Regards,
Bojan
- Aleksandar_A3 years agoContributor III
Hi @manderson1,
You can pass the file name as Binary header property in the CSV Formatter Snap, and you can access it in the File Writer as you are trying to.
Let me know if this works for you.
BR,
Aleksandar.