Help with Sending an Email Notification on last Approval made

johndel
Giga Contributor

I have catalog item that has a workflow (for sc_req_item table). The workflow has multiple approval process. Each approval made will trigger an email notification sent to the owner of the request. The email notification is configured to be triggered for every update on the sysapproval_approver table. I would like to send a copy to an email address when the last approval is completed. How will I do that?

1 ACCEPTED SOLUTION

Hi Chuck,



I found out a solution. I just edited the existing Mail Script of the Email Notification and added a line like this:



//email.addAddress(type, address, displayname);


email.addAddress("cc", "john.copy@example.com","John Roberts");


email.addAddress("bcc", "john.secret@example.com","John Roberts");


View solution in original post

8 REPLIES 8

Hi Chuck,



I found out a solution. I just edited the existing Mail Script of the Email Notification and added a line like this:



//email.addAddress(type, address, displayname);


email.addAddress("cc", "john.copy@example.com","John Roberts");


email.addAddress("bcc", "john.secret@example.com","John Roberts");


I'm glad you got it taken care of. Thank you for participating in the community.


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi John,



To add, you have to modify condition of existing notifications to be not triggered(control it via unique condition) and then trigger the event from your workflow as Chuck mentioned once all activities are completed.


Events and Email Notification - ServiceNow Wiki


Thanks Pradeep! I will try this too. Thanks.