This was asked in an interview-Can we by any chance use any activity method to change the pzInskey in Pega?
@TanyaS58 pzInskey is a unique identifier generated by pega for each of the instances. So it is not possible to manipulate pzInskey of an instance using activity. We just can use pzInskey to open the instance.
Not related to data manipulation using Activity methods, but in general,
You can change pzInsKey under one circumstance, where you drop all the instances of the class from it’s mapping table and recreate the pzInsKey.
This is not a practical situation in Production like Environments, but if you are in a Non Prod Env or starting development and relaized the pzInsKey is not formed correctly, then you can drop and recreate.
@SUMAN_GUMUDAVELLY thanku