Clear activity log for existing Task record

akash27
Tera Contributor

Hello Experts,
I am looking out for a fix script/Server script to delete the Activity log for an existing task record.
This is required as these tasks will be updated for multiple values (sequentially via flow) and will create activity log for that record which is not needed.

1 ACCEPTED SOLUTION

swathisarang98
Giga Sage
Giga Sage

Hi @akash27 ,

 

You can follow the steps mentioned in the below article,

https://www.servicenow.com/community/itsm-forum/delete-activity-comment-log/m-p/508675 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

View solution in original post

2 REPLIES 2

Jaspal Singh
Mega Patron
Mega Patron

Hi Akash,

Deletion of activity log itself defeats the purpose of it. Why not avoid updating fields if it is not needed instead of deleting it later. Suggest you to check for a logic to avoid update instead of deletion then

swathisarang98
Giga Sage
Giga Sage

Hi @akash27 ,

 

You can follow the steps mentioned in the below article,

https://www.servicenow.com/community/itsm-forum/delete-activity-comment-log/m-p/508675 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang