The CreatorCon Call for Content is officially open! Get started here.

I do not want to send standard approval request mail of workflow approval activity.

chanken
Tera Contributor

Hi Everyone,

I do not want to send standard approval request mail of workflow approval activity.

I found that I can set a mail's subject   in business rule   in the mail table.

However, with this implementation, all approval request notification e-mails are suppressed.

I want to control this for each workflow.

How can I implement it?

Can I implement it with an approval activity script?

regards.

6 REPLIES 6

henry_cheng
ServiceNow Employee
ServiceNow Employee

Hi Kenji,



If you do not want to send approval email from a specific workflow. Firstly go to that workflow and open the activity which contains the script to send an email.


The script usually is using gs.eventQueue method to create an event in the queue to trigger your email notification. You can comment out that line to prevent create the event.


Before you do this you should make sure there is no other email notification to be triggered by the same event, otherwise it will impact other notifications.



Normally if you want to disable email sending from a specific activity we recommend you create a special event and create a new email notification that will be triggered only by this special event. Then it will be much easier to control the behavior (enable/disable) of sending email when the event will be created.



Cheers


Henry


Hi Henry,



How can I edit scripts using the gs.eventQueue method of Approval - User activity?



regards.


Go to emails log and search for that particular email which you don't want to trigger. open the record and check the origin of the email (Event name or notification).


Modify the script after getting the trigger point.


Hi Deepak,



I found a notification.


That notification is "Approval Request".


Since I want to stop notification mail for a catalog item.


I will try to filter on the category of catalog item by doing dot walk from "approval for".


Is this correct solution?



regards.