View Audit History of Object Records in Redwood
View the audit history of a record, such as an opportunity or account, while you're viewing the record details page. You can view the history of the object without navigating away to the fundamental audit report separately.
Accessing the audit report directly on the record details saves time and boosts efficiency by providing immediate context for changes without switching views.
Steps to Enable
As an admin, first you need to enable the object for which you need to see the audit report by enabling Auditing on that object. This can be done by following steps:
- Go to Setup and Maintenance
- Navigate to the Manage Audit Policies FSM task
- Set Oracle Fusion Applications - Audit Level to "Auditing"
- Click on Configure Business Object Attributes button
- Select the desired Product from the dropdown and make sure the object to me audited is checked.
- Verify the list of attributes for which you need auditing. You can add more to this list if needed.
- Save and from now the selected attributes of the enabled objects will be Audited.
Next you need to enable the Audit subview in the Redwood Details page of the given object.
1. Open the given object's detail-page-template.html. This can be found in the Apps UI tab, and finding the object-details entry. Here, under the Page Designer tab, click on the Code subtab.
Here add a new template similar to this:
<template id="auditSubviewTemplate">
<oj-vb-fragment name="oracle_cx_fragmentsUI:cx-audit" bridge="[[ vbBridge ]]">
<oj-vb-fragment-param name="resource"
value='[[ {"name": "<objectname>", "primaryKey": "<objectPrimaryKey>", "primaryKeyValue": $page.variables.id, "alias": "Audit" } ]]'>
</oj-vb-fragment-param>
</oj-vb-fragment>
</template>
where <objectName> should be the name of the object, and <objectPrimaryKey> is the primary key of the object. For example in case if Account object, these values are "accounts" and "PartyId" respectively.
2. Next go to the detail-page.json of that object by clicking on the JSON tab
2.1. Under addSubLayouts > SubviewContainerLayout, locate the subview in which you want the Audit subview to show up. For example it is "subview1".
2.1.1 Locate subview1> layout > displayProperties and add the following
"displayProperties": [
"Audit",
...
]
2.1.2 Locate subview1> layout > sectionTemplateMap and add the following
"sectionTemplateMap": {
"Audit": "auditSubviewTemplate",
...
}
2.2 Under addSubLayouts > addTemplates, add the following
"auditSubviewTemplate": {
"title": "Audit Subview Template",
"extensible": "byReference",
"@dt": {
"type": "section",
"layout": "SubviewContainerLayout"
}
},
Tips And Considerations
Once enabled by the admin, the audit report is available to all users who have access to view the record.