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

Ok, so I am using a mapper snap to get the path for the json splitter like:

jsonPath($, โ€œ$response.entity.feed.entry[*].content.Recordโ€)

So, not to clear about how I would use the function for the columns embedded in each record?

koryknick
Employee
Employee

@vincenr - Have you tried the newid() function from SQL Server?

vincenr
New Contributor III

Yes, and just about every version to do the same thing for Oracle, MySQL, PostGres etcโ€ฆ Iโ€™m querying against a proprietary system and donโ€™t know what DB they are using.

koryknick
Employee
Employee

Can you add a Mapper after your API call to generate the unique ID? Or does it need to be generated from within the database?

vincenr
New Contributor III

I donโ€™t know how to do it so it generates a separate unique id for every row. Is there a post that explains how to do this? Iโ€™m brand new to SnapLogic. Specifically, Iโ€™m referring to from within the mapper snap.