Question
Holiday Inn Club Vacation
IN
Last activity: 10 Jul 2024 16:46 EDT
Audit for data types
Hi,
I have a requirement to record audit for data types.
whenever any row in data type gets updated or created, then need to record Audit.
data type is mapped with CustomerData.
Please guide me , how to do proceed with this requirement.
thank you.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Maantic Inc
IN
I've not seen Pega's OOTB audit being used on data records. You can instead try this way:
- Create a declare trigger on the data type class
- Write an activity where you'll save a new record in the history table
- Call this activity from the trigger on a committed save
Eclatprime Digital Private Limited
IN
-
Create an Audit Table: This table will store the audit logs for any changes made to the data types.
-
Create Database Triggers: Depending on your database, you can create triggers to automatically log changes.
Eclatprime Digital Private Limited
IN
@ADITIJ49 Auditing for data types you can do with following methods. 1. Creation of an audit table - Pega Platform maintains a historical record of changes to certain data classes and rule types. You can use this history to diagnose system issues and to demonstrate compliance to internal and external auditors.For example, you can record the application rule name that is referenced in an access group each time a user updates the Access Group form and adds, changes, or deletes an application rule name.
2. Database trigger rule using declare trigger - As per your DB changes you can trigger those rules anytime,
Holiday Inn Club Vacation
IN
Thanks for the reply,
But my requirement is that , whenever any row in data type gets changed want to see previous value and new value
Holiday Inn Club Vacation
IN
Whenever any attribute value is newly added or updated , then should capture like
Eg: Salary changed from 88 to 999
Pegasystems Inc.
CA
This is a requirement similar to Case level Filed-level auditing. OOTB Audit for Data type can be enabled whenever the record is saved/deleted at the record level. However, tracking at the property level requires a data table to store and audit the changes based on your requirements.
Pegasystems Inc.
CA
Can you please check this configuration to see if this suffices your requirements?
Data -> View definition -> Advanced - Bypass History on Save section