When table records deletion, sent an Email to respective Users through Event Queue , Email notifications and Events.
Import
·
Jan 17, 2020
·
article
Recently we have worked on very interesting task with less coding.
When someone deleting their record from table we need to send email to same respective user through Before Delete Business rule and Event and Notifications.
1) Create One Event Registry :
2) Business Rule : Before - , Delete : True
(function executeRule(current, previous /*null when async*/) {
var deleteRecord=current..email; //(as per table field reference value we need to parse Email)
//gs.addInfoMessage(current.u_user.sys_id);
gs.eventQueue('Event Registry Name',null,deleteRecord);
//gs.addInfoMessage(deleteRecord);
})(current, previous);
3) Notification On Event Fired :
When to Run :

Who will Receive :

What will contain :
Your Email Body your wish ![]()
Mark
Correct if this
Helpful.
Regards,
RDK.
View original source
https://www.servicenow.com/community/itsm-articles/when-table-records-deletion-sent-an-email-to-respective-users/ta-p/2312047