Email notification on record deletion from a custom table

anu62472744
Giga Contributor

Greetings, people.

Question:

Is it possible to trigger an email notification when a record is deleted from a table in ServiceNow?

Use case:
The table in question is a custom table, and all records are created manually. Whenever a record is deleted, I want to send an email notification (for example, to the caller or another user).

Steps I have tried so far:

  • Created a new Event Registry (for example: shipping.case.delete).

  • Created a new Email Notification and configured it to send when → Event Fired, using the above event.

  • Created a Before Business Rule on the custom table with Delete = true and added the following script:

           gs.eventQueue('shipping.case.delete', null, '', '');

 

 

Issue / Question:

Despite the above setup, the email notification is not being triggered when the record is deleted.

  • Is this the correct approach for sending email notifications on record deletion?

  • Are there any limitations with delete actions that prevent notifications from firing?

  • Is there a best practice or recommended alternative (Business Rule vs Notification vs Flow Designer) for handling emails on delete?

Any guidance or working examples would be greatly appreciated.

 

Thanks in advance!

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@anu62472744 

check this

How to Properly Send an Email Notification When a Record Is Deleted in ServiceNow 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@anu62472744 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi Ankur,

Thanks for the quick response.

I’ve already tried the approach you suggested. The issue I’m facing is that when I delete a record from the Shipping table, the event fires successfully (I can see it in the Event Log), but there is no corresponding entry for the notification in the Email Log.

 

My requirement is quite simple:
I just want a basic email notification whenever any record is deleted. In the email subject, I’m only using the record number to identify which record was deleted, so I’m not using any email script or advanced logic.

 

I’ve attached a screenshot for reference. Could you please let me know what I might be missing or misconfiguring?

 

Thanks in advance for your help.

Tanushree Maiti
Mega Sage

It could be achieved using

a. create a 'Delete' Business Rule . You can select 'before' delete or 'after' delete as per your requirement.

b. In BR's advance script , use the gs.eventQueue methods in order to send the notification. Create Notification with subject, body etc as per your requirements add recipient.

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: