Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Creating GUID

Hi, I am new to Talend open studio for Data Integration and have a question that I hope some of your experts will be able to assist me with.

 

How to create GUID? What function do I need to use? Do I need to add a new column, which is ID? Thank you in advance

Labels (1)
  • v7.x

3 Replies
manodwhb
Champion II
Champion II

@hahahachum_ , GUID is kind of surrogate key? if yes you can generate using below function in tmap.

 

Numeric.sequence("s1",1,1)

 

Anonymous
Not applicable
Author

Dear @manodwhb ,

 

I'm using "(java.util.UUID.randomUUID()).toString() " at tMap. the result as below:

 

0683p000009M82q.jpg

 

How can i get string GUID? example: 0A09A860-A9A2-4539-3B3F-08D5924FE3AF

 

 

 

 

 

 

manodwhb
Champion II
Champion II

@hahahachum_ ,you can generate based on columns using tAddCRCRow,can you check that component is works for you.