- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hii all,
We have configured an email notification on the sysapproval_approver table to notify a group of users when an approval is requested. A CC recipient is also included in this notification.
When the notification is triggered, each member of the approval group receives an email. However, since the notification is sent once per approver record, the CC recipient also receives the same email multiple times. For example, if the approval group has 10 members, the CC recipient receives 10 separate emails for the same approval request.
What is the recommended way to prevent multiple emails to CC recipients and ensure that the CC user receives only a single notification for the group approval?
Thanking in advance.
Nikhil C
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
This happens because notifications on the sysapproval_approver table are triggered per approver record, not per approval request.
To fix this, you should avoid sending the CC from the approver-level notification and instead send a single notification at the record level. Create a separate notification on the sysapproval_approver record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Nikhil C ,
Instead of relying on the CC field in the Notification form, you can create a mail script that ensures the CC recipient is added only once.
- Go to System Notification > Email > Notification Email Scripts.
- Create a new script .
- Add logic to include the CC email address as needed.
Sample Script:
var ccEmail = "manager@example.com";
email.addAddress("cc", ccEmail, "Manager Name");
})(current, template, email, email_action, event);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
This happens because notifications on the sysapproval_approver table are triggered per approver record, not per approval request.
To fix this, you should avoid sending the CC from the approver-level notification and instead send a single notification at the record level. Create a separate notification on the sysapproval_approver record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@Vaibhav Chouhan Could you please elaborate it in detail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Nikhil C ,
Instead of relying on the CC field in the Notification form, you can create a mail script that ensures the CC recipient is added only once.
- Go to System Notification > Email > Notification Email Scripts.
- Create a new script .
- Add logic to include the CC email address as needed.
Sample Script:
var ccEmail = "manager@example.com";
email.addAddress("cc", ccEmail, "Manager Name");
})(current, template, email, email_action, event);
