I do not want to send standard approval request mail of workflow approval activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2017 07:19 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2017 11:24 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2017 11:58 PM
Hi Henry,
How can I edit scripts using the gs.eventQueue method of Approval - User activity?
regards.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2017 12:16 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2017 07:17 PM
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.