Sahil
4 years agoContributor
Map XML attribute to a field
Hi,
I need to map “id” and “header” field in mapper.
Data.txt (785 Bytes)
I am using file reader snap,xml parser and mapper.
in mapper, tried different expressions but not able to get the fie...
- 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.