Question
Virtusa
LK
Last activity: 4 Oct 2018 11:08 EDT
Generate Unique ID for Primary Key of a Data Table
I'm doing a user registration functionality. I need to generate unique IDs for every user. Is there a method to generate unique IDs.
***Moderator Edit: Vidyaranjan | Converted discussion to question***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Likes (2)
Siva Tutika Sweta Kumari -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
please refer - @(Pega-RULES:Default).CreateUniqueID()
Tata Consultancy Services
QA
Thank you. It worked.
Accenture
NL
when we iterate through page list and use this function to set unique value, it's returning same value for three records.
EPAM Systems
IN
Can you provide with an example?
Coforge DPA
GB
You can use GenerateID activity . Customize it for your specific requirement.
Zurich Versicherungs-Gesellschaft AG
CH
Good one (y)
@(Pega-RULES:Default).CreateUniqueID() --> Helpful function
NCS Group
SG
Tested, this is just current timestamp. Meaning that, if 2 records are insert simultaneously, there is a chance of having a collision.
-
Srimaan Murari Mahenderkar