Delete Activity

Toshikazu Matsu
Tera Contributor

Hi,

Can I delete activity log on the incident form?

I wrote a wrong comment in work note, and I delete this comment.

Please show me how to delete activity log.

 

Best Regards,

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Toshikazu,

 

Mark Stanger has created a blog on the same subject. Please refer the same.

https://www.servicenowguru.com/system-definition/remove-activity-log-journal-entries/

 

-Pradeep Sharma

 

View solution in original post

8 REPLIES 8

Gerry Crumbley
Giga Expert

NOTE:

I can delete it from the Audit History, but it still shows up in the Activity Log of the incident. How do I get rid of it from there?

Gerry Crumbley
Giga Expert

Still can't find out how to get the entry removed from the Activity Log. I even followed these instructions I found in the forum:

Delete work notes in ServiceNow

1 Obtain the sys_id of the record

  1. Open the record containing the insecure SEI.
  2. Right-click in the record header, and choose Copy sys_id.

2 Remove from sys_journal_field

  1. Use this URI to query the journal entries: https://myinstance.service-now.com/sys_journal_field_list.do?sysparm_query=element_id=sys_id
    • Replace sys_id with the sys_id of the record.

If there are a lot of records, you may want to refine the query, adding a "Value contains SEI" condition. Replace SEI with the text you seek.
Edit the Value field of each record to remove the SEI.

3 Remove from sys_audit

  1. Use this URI to query the audit entries: https://myinstance.service-now.com/sys_audit_list.do?sysparm_query=documentkey=sys_id
    • Replace sys_id with the sys_id of the record.

It may be helpful to add conditions to the query for "Old value contains SEI" OR "New value contains SEI".
Edit the text of the Old value and New value fields, removing the SEI.

4 Delete the sys_history_set record

  1. Query the sys_history_set table using this URI: https://myinstance.service-now.com/sys_history_set_list.do?sysparm_query=id=sys_id
    • Replace sys_id with the sys_id of the record.
  2. Delete the record that is returned.

Hey Hi Is there any good luck on this because I need the same way.

FanchenBao
ServiceNow Employee
ServiceNow Employee

I made it work by deleting the activity log content from both the sys_history_line and sys_journal_field tables.