In many industries, Audit is a crucial part to maintain accuracy and tracking of all changes to the records. AuditTrail feature in HCL Compass can fulfill this requirement as it helps in tracking the changes in different record types when they are created or changed. After you enable a record type with the AuditTrail package, all changes to records of that type will be audited.
How to apply AuditTrail package?
- Launch HCL Compass Designer
- Connect to the schema repository
3. Right click on schema version and click on apply packages
4. Select AuditTrail package
5. Select the record types you want to enable for.
6. Click on Finish to install the package
7. Once it gets installed successfully, check-in the latest schema version and upgrade the user DB
How to track changes in AuditTrail for a record?
- Login to HCL Compass Web
- Create New defect and fill the details
- Save the record
- You will see Audit Trail tab that displays the audit trail for the record.
The information it stores by default is
- User identity as user name and login
- Database schema version that was used to describe the record as Schema Rev
- Time of change
- Action and state
- Changed fields
Note: It contains no editable fields so it cannot be altered.
This is how the records types can be audited whenever they are created or modified
We can also customize and configure the audit trail to:
- remove certain fields from auditing
- change format what the audit trail looks like
- customize to only audit certain records.
We will see how to remove certain fields from auditing:
- You can add global hook as below to disable audit for any field. In below example we are disabling auditing for Owner field.
2. Checkin the schema and upgrade user database
3. Login to compass web
4. Change Owner field and Description field
5. Save the record
6. You will see that Owner field changes are not captured but Description field changes are.
Before disabling auditing for Owner field:
After disabling auditing for Owner field:
In this way we can disable auditing for specific fields. For details about customization please refer link: AuditTrail extensions
Start a Conversation with Us
We’re here to help you find the right solutions and support you in achieving your business goals.