Audit History: how to trigger to save to Related List?

tahnalos
Kilo Sage

I have turned auditing on a custom table.

There is the Audit History Related list on the custom table.   It is empty.

If I do History->List on a record, it shows the Audit Records for the Custom Table Record before dumping them into the Audit History related list.

Any way to automate this on Insert/Update via Business Rule?   The customer wants to see the list without having to trigger it themselves.

Thanks

7 REPLIES 7

Rajesh Mushke
Mega Sage
Mega Sage

Hey tahnalos



If you want to audit the custom table, you need to enable auditing your table.


For example:


find_real_file.png




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Rajesh Mushke
Mega Sage
Mega Sage

Enable auditing for a table:


You can enable table auditing to track changes to all or some of the table's fields.



Before you begin


Role required: admin


Procedure


  1. Navigate to System Definition > Dictionary.The system displays the list of dictionary entries. The list includes a row for each table as well as a row for each column (field) in the table.
  2. In the list of dictionary entries, find the row corresponding to the table you want to audit, for example cmdb_ci_computer. You can distinguish the row for the table itself — versus a row for a column in the table — by finding the row with the correct table name, an empty entry for Column name, and a type of collection.
  3. Select the dictionary entry for the table.The system displays the dictionary entry form.
  4. Check the Audit check box.
  5. Click Update.


Please Refer:


Enable auditing for a table



Let me if it doesn't works.




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Yes, I am aware of that.   This has already been done.   That's not what I'm asking though.



The issue is the following: the audit history does not show up by default.   See screenshot:



find_real_file.png



But if I right click on the header and go History->List, and go back to the record, I get this:



find_real_file.png



The question is how to automate that process so that the history shows up every time.



Thanks


Bump