Discussion
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Need Help - Random generation of primary key for Data Table
How to auto generate primary key value for a data table randomly?
Did you miss our WEBINAR: Transform IT & Operations with AI: Pega Blueprint Advantage? Watch the REPLAY!
This webinar will show how AI is revolutionizing these functions and how Pega’s Blueprint Solution can help you fully leverage AI to meet your goals.
Get Instant Answers with Your New AI Buddy! Skip the wait and get your questions answered fast! Our AI Buddy is here to help you during the issue ticket creation process, giving you solutions before you even contact support. Try it out in My Support Portal and see how easy it is!
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
How to auto generate primary key value for a data table randomly?
If you are talking about a pega data table like pr_other, the table has pzinskey as the primary key and the value is generated by pega using the defined keys on your class. If you are talking about a non pega table, you can use sequence or java features as stated in this link(http://www.javapractices.com/topic/TopicAction.do?Id=56).
Thanks,
Ashok
Question Solved
Discussion
Question
Question Solved
Question
Question Solved
Question
Question
Question Solved
Question Solved
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.