SL12345
6 months agoNew Contributor III
split target csv file into more smaller CSV's
Hi Snaplogic experts, my pipeline is creating one big CSV file (50k rows) as the result. Collegues asked me, if it is possible to split this big CSV file into smaller ones (create csv files with th...
- 2 years ago
Solution:
I first used group by snap to group userID fields. Next I put a mapper and added a custom encrypted value with expression
'XXXX'+sl.range(4).map(x => "0123456&#X"[Math.round(Math.random()*9)]).join('')
Then I added a JSON splitter to split the group and included value of custom encryption.