aditya_gupta41
2 years agoContributor
Creating unique ID's and repeating
Hello Experts, I have a JSON input looks like this: [ { "id": "0000000", "type": "DUMMY_Payload", "userId": "ABCD1234" }, { "id": "1111111", "type": "DUMMY_Payload_1", "userId": "QWER5678"...
- 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.