Set Who Will Receive in email notification using a Script

Gopal6
Tera Contributor

Hi,

 

I'm trying to create an email notification that is sent to the user assigned whenever any worknotes or addition comments are added. If there is no user assigned, the notification will send to a group instead. Is this possible with a script ?

7 REPLIES 7

Thanks for these step by step and screenshots, but does it work for you??  I'm doing something similar where if the "Updated" field changes, then it sends out the notification. But, your BR script is not working for me.

Hi ,

 

It will be helpful if you can share some screenshots of what you configured...!!

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Gummagatta Hars
Mega Guru

Hi @Gopal6 ,

 

I would suggest to create two simple notifications to achieve this requirement. Please refer to the below screenshots for notification trigger and recipients details assuming we are creating notifications on incident table.

This solution is simple and easy for maintenance and requires no scripting. Please accept the solution if it resolves your query and mark the answer as helpful.

Let me know in case if you need further information.

1. Notification for assigned to 

GummagattaHars_0-1737611649243.png

GummagattaHars_1-1737611699367.png

 

2. Notification to Assignment group members if assigned to is empty

GummagattaHars_2-1737611729655.png

GummagattaHars_3-1737611751282.png

 

Thanks,

Gummagatta Harshavardhana