How do I script an email notification to send when specific users comment on a RITM?

Xavier_Wharton
Tera Guru

Problem

I enabled a notification record to be triggered when comments are entered on a RITM.

All notifications are sent to the Service Desk assignment group; however, I want to help reduce the number of notifications that are sent by creating a script to do the following:

  • Only send email notifications when comments are entered/added by:
    • Event creator > Opened By field
    • The person listed on the Requested By field
    • Any person listed on the Watch List
  • And I DO NOT want any messages to be sent to the Service Desk if a comment is left by a fulfiller (person with an ITIL role)

Below are screenshots of what I have done so far. Thank you in advance for helping me with any scripting; this is not my strong suit. . . yet.

 

When to send

This is where I need the most assistance, particularly with the script based on what I want to achieve. 
XavierWharton1_0-1706928432261.png

 

Who will receive

XavierWharton1_1-1706928883797.png

 

 
5 REPLIES 5

Thank you @Sid_Takali for these tips!

Please see the update to the use of the code snippet that you provided to me on Sunday. 

Re: How do I script an email notification to send ... - ServiceNow Community