I want to record the deletion information of the attachment record in the activity field

bonsai
Mega Sage

When you attach a file to a record, it is recorded in the activity field.

However, when you delete the file, the information in the activity field is also deleted.

What should you do if you want to record information such as "File name was deleted"?

1 ACCEPTED SOLUTION

KoteswaraVM
Tera Expert

Hi @bonsai ,

In ServiceNow, I don't think we have any OOB feature to capture the attachment deletion information tracking in Activity stream but we can achieve this through a custom BR. I tried this in my PDI and it worked. You can customize it as per your requirement.
FYR -
Business Rule:
Before business rule on Attachments (sys_attachment) table.

KoteswaraVM_0-1738580018116.pngKoteswaraVM_1-1738580117987.png

 

KoteswaraVM_2-1738580190348.png




I hope this information helps. Please mark my response helpful if this helped.


Thanks & Regards,
Koteswara Vara Prasad M

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@bonsai 

it comes from platform level.

I don't think you can control the wordings for it.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@bonsai 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Dr Atul G- LNG
Tera Patron
Tera Patron

HI @bonsai 

 

No, mate we cant change this. It is something core code, we cant change or access.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

KoteswaraVM
Tera Expert

Hi @bonsai ,

In ServiceNow, I don't think we have any OOB feature to capture the attachment deletion information tracking in Activity stream but we can achieve this through a custom BR. I tried this in my PDI and it worked. You can customize it as per your requirement.
FYR -
Business Rule:
Before business rule on Attachments (sys_attachment) table.

KoteswaraVM_0-1738580018116.pngKoteswaraVM_1-1738580117987.png

 

KoteswaraVM_2-1738580190348.png




I hope this information helps. Please mark my response helpful if this helped.


Thanks & Regards,
Koteswara Vara Prasad M