Get Activity Log Values

Omkar Joshi
Giga Guru

Hello All,

 

How can I get whole activity log data of particular record?

 

find_real_file.png

1 ACCEPTED SOLUTION

Hi,

Then you can use before insert BR on your child table

You will have to query this table with the parent record sys_id

table - sys_history_line

Query - set.id = <parentSysId>

Then get all the activities with old and new value and put in the string field

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

If the table is audited then you can check this from

1) History calendar

2) History List

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks for yor reply. But how can get this activity value in script. I want to add parent activity logs in child record in string field.Is there any method to get activity log data.

Hi,

It won't happen OOB.

If you wish to store it in some custom field then you will have to build logic around this whenever parent is updated and update the change in the custom field on child record

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks Ankur for your quick reply. I don't want it at everytime.At the time of child creation I need to display just activity logs of parent fields in string field. (Only one time). So is there any way to get that whole activity log.