Forum Discussion
Piyush
8 years agoNew Contributor III
You can use mapper to change structure. Something like below:
I did changes for 2 fields only
bill_sturdivant
8 years agoNew Contributor III
Thank you for the mapper but my need is to do this dynamically. The data coming in to the mapper will not always be the same format. I’ll need to do this for a possible 850 salesforce objects all with different column names. I was thinking that a script snap would work but I’m not that strong in javascript, python, etc.
- bojanvelevski3 years agoValued Contributor
Hi @Manigandan,
@marjan.karafiloski’s solution will help you in this case.
If you want to keep everything in one mapper, then take a look at the array filter function:The expression would look something like this:
$array.filter(x=>x.active == 1)
Regards,
Bojan