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

Hey tahnalos,



Sorry for the delay, Please check below threads.



Please Refer:


Custom Audit table


How to see the audit history of tickets.


Understanding Audit History and how it works



Let me know if it does't works.




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

Thanks.   The correct line from your third link is



new GlideHistorySet(<table_name>, <sys_id>).generate();


Awesome .



Please close this thread. then only this will be helpful for other community users.



Please mark my response as correct/Endorse so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.If you are viewing this from the community inbox you will not see the correct answer button.


If so, please review How to Mark Answers Correct From Inbox View




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