ServiceNow: Prevent Sending Email Notifications to The Comment Creator

2024.06.11 | Yuki Rea

ServiceNow notifications can get a bit spammy if you the creator of comments also receives notifications about the comment they just added. This article explains how to prevent notifications from sending to the creator of the comment with a simple advanced condition script.

You will need to have 2 separate email notifications. One that is sent to "Assigned to" and a separate one that is sent to the "Caller."



"Assigned to" Notification Advanced Send Condition

Paste the following script into the "Advanced condition" field under the "When to send" tab.

1 if (current.assigned_to.user_name != current.sys_updated_by){
2         answer = true;
3 }
4 else {
5         answer = false;
6 }

Configure your notification using the following conditions.




"Caller" Notification Advanced Send Condition

Paste the following script into the "Advanced condition" filed under the "When to send" tab.

1 if (current.caller_id.user_name != current.sys_updated_by){
2         answer = true;
3 }
4 else {
5         answer = false;
6 }

Configure your notification using the following conditions.