


|
Tab Name
|
Fields Audited
|
|---|---|
|
Properties
|
In this tab the following fields are audited:
• Name
• Tags
• Description
|
|
Object and Mapping
|
In this tab, the details on the cards for any changes on the following associations are audited:
• Target Object
• Qualification Criteria
• Mappings
• Field Sets
• Alias Name
• Source Object
|
|
Layout Editor
|
In this tab, audit changes are applicable at the section and field levels. They are as follows:
• Addition and deletion of fields
• Addition and deletion of sections
• Renaming sections
• Association of the page layout
|
|
Formulas
|
In this tab, the addition and removal of formulas are audited and recorded.
|
|
Data Validation Rules
|
In this tab, the addition and removal of Data Validation Rules are audited and recorded.
|
|
Source Object Update
|
In this tab, the addition, deletions, and all updates for any rows are audited and recorded.
|
|
|
In the audit table, the Old_Value and New_Value fields records this information for the respective entities.
|
|
Tab Name
|
Fields Audited
|
|---|---|
|
Properties
|
In this tab, the following fields are audited:
• Name
• Object
• Tags
• Description
• Display name
• Enable Version Control
• Sync when report is saved
|
|
Object and Mapping
|
In this tab, the following fields are audited:
• Target Object
• Qualification Criteria
• Alias Name
|
|
Record Update
|
In this tab, the Object Row details are audited.
|
|
Template Designer
|
In this tab, the Template Name, Template Description, and any changes in the template are audited.
|
|
Sorting
|
In this tab, the Target Object field names are audited.
|
|
Checklist
|
In this tab, the Checklist names are audited.
|
|
Tab Name
|
Audit Log Details Changes
|
|---|---|
|
Checklist Properties
|
In this tab, the additions and deletions of the following fields are audited:
• Name
• Object
• Description
• Tags
• Smart Sync
• Qualification Criteria
• Mappings
|
|
Form Designer
|
In this tab, additions, deletions, and all updates for section names are audited.
|
|
Source Object Update
|
In this tab, additions, deletions, and all updates for any rows are audited.
|



SVMXC__Config_Change_Detail__c[] listOfConfigChangeDetails = [SELECT id FROM SVMXC__Config_Change_Detail__c WHERE CreatedDate < LAST_N_MONTHS:6];
System.debug('size : ' +listOfConfigChangeDetails.size());
try {
if(listOfConfigChangeDetails != null && !listOfConfigChangeDetails.isEmpty()) {
delete listOfConfigChangeDetails;
System.debug('Records are deleted successfully');
}
} catch (DmlException ex) {
System.debug(LoggingLevel.ERROR, 'Exception occurred while deleting the records: ' + ex.getMessage());
throw ex;
}
|
|
To delete entries older than n days, where n represents number, replace LAST_N_MONTHS: 6 with LAST_N_DAYS:n, in the script.
|