Question
Macquarie Bank
AU
Last activity: 29 Aug 2022 3:05 EDT
Tracking changes to Datatype which is delegated
Hi All,
I have a requirement where I need to store history for the changes done by users on the datatype records which is delegated . changes like who updated it? if value is changed then from what previous value to new value ? who deleted it ? who added new entry ?
Steps followed by me
1) Created TrackSecurityChanges Declare trigger in prod ruleset which is delegated
2) pyTrackSecuritychanges Data transform with all Data table fields I want to track
I am able to track the changes done to add new entry or update any value in the record.
But I am unable to track if someone has deleted the entry from the Datatype records. Declare trigger is not invoked when deleted. Did anyone face the same issue and found any work around.
any suggestion is appreciated

@NAVAKANTHM
Checked another option - https://docs-previous.pega.com/data-management-and-integration/87/omitting-history-snapshots-data-types
On the data class rule form there are options for capturing history snapshots on create, update, delete.
Setting this option to false generates a history class for your data class and will enable snapshot tracking when editing records via the records tab (same as rule history snapshots):
If you use this option, make sure to do a performance impact assessment as mentioned in the article above.