capture the changes done in the Related lists on a form in Activity Formatter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 12:29 AM
Hi community,
I am trying to capture changes made in the 'Contract CI' field, a related list field in the Contract (ast_contract) table. By default, additions to this related field are not tracked in the Activity History.
To address this, I created a Business Rule to generate a record in sys_history_line whenever a new entry is created in the Contract CI (contract_rel_ci) table. Although the Business Rule successfully creates entries in the sys_history_line table, these entries still do not appear in the Activity Formatter on the Contract form.
Is it possible to generate an Activity History log entry using a Business Rule when there is an addition to a related list field? If not, are there any recommended methods to ensure that changes in the Contract CI field are tracked and displayed in the Activity Formatter? or somewhere else?
(function executeRule(current, previous /*null when async*/) {