Closed
How can we add another primary key for a table in pega?
How can we add another primary key for a table in pega?,what are the things to be taken care if we add another primary key to a table and how to deploy it
***Edited by Moderator Marije to change type from General to Product, added Product details and Capability tags****
@TanyaS58
Strictly applicable for concrete classes in pega.
In pega after creating a data model / type there is an option to add keys on the class rule on General Tab.
There you can add attributes that are part of primary key. If it's a single attribute it will be single field primary key, if more than one attribute added it will be composite primary key. Now this can be done only right after creating a table and no data instances / records created in that table. If there is an instance to change the Primary key we need to truncate the table and then change the primary key.
For Work class - class group this will be a bit complex but more or less same approach.