cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to generate a unique id in snaplogic

Sowmya_Rayavara
New Contributor III

Hi Team,

Can you please let me know how to generate a unique ld like the below one in snaplogic.

1553020781234-4901709987102371234-03202019DFF456F123

Thanks in Advance!

22 REPLIES 22

vincenr
New Contributor III

I finally got it workingโ€ฆ Might not be the simplest solution, but I found a forum where someone was trying to do manipulations on a column after the data was returned by the REST POST. So hereโ€™s what I did, and it works.

The โ€˜Map columnsโ€™ is where I manipulate the one column to make it a UUID. The Group By was indicated by the forum I read as needed to โ€œput it back togetherโ€, but then I had to add a second splitter after thatโ€ฆ

image

koryknick
Employee
Employee

@vincenr - Iโ€™m very glad you found your solution.

Unless you are doing something Iโ€™m not thinking of with the Group By N and JSON Splitter, that seems unnecessary. Please take a close look at the data preview after your Map columns compared to the output of JSON Splitter1 - my guess is that those are identical, meaning those 2 snaps could be removed.

vincenr
New Contributor III

I already figured it out. It was a caching issue. I had tried without the Group By N and extra splitter but it wasnโ€™t working. Later, I went back and tried removing them and then it started working.