When to use events with notifications (easiest points ever!)

juan casas
Mega Expert

Hi experts,

I have a simple question.

 

When should I use events with notifications?

 

Business case:

State changes, I would like to send a notification out. Should I use an event for this?

 

Such a silly question, but I figured that there has to be some rule of thumb for when to use events. For speed, I went with creating a notification record and putting on the condition trigger for the state change

1 ACCEPTED SOLUTION

Mohit Kaushik
Mega Sage
Mega Sage

Hi Juan,

For almost everything we have notifications module enough in ServiceNow. But in some cases when we cannot just get things OOB notification facility then we take help of events:

1. Useful when we need to trigger notifications to the users which are not present in the form directly but we can get them through some script.

2. Events are useful to send notifications through scheduled jobs and workflows. 

3. Can use events when you are getting data through server side scripting like Business Rule, Script includes and etc.

There will be many more usages of events to notification, however above are basic ones.

 

Please mark this as correct and helpful if it resolved the query or lead you in right direction.

Thanks,
Mohit Kaushik
Community Rising Star 2022

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

View solution in original post

2 REPLIES 2

Mohit Kaushik
Mega Sage
Mega Sage

Hi Juan,

For almost everything we have notifications module enough in ServiceNow. But in some cases when we cannot just get things OOB notification facility then we take help of events:

1. Useful when we need to trigger notifications to the users which are not present in the form directly but we can get them through some script.

2. Events are useful to send notifications through scheduled jobs and workflows. 

3. Can use events when you are getting data through server side scripting like Business Rule, Script includes and etc.

There will be many more usages of events to notification, however above are basic ones.

 

Please mark this as correct and helpful if it resolved the query or lead you in right direction.

Thanks,
Mohit Kaushik
Community Rising Star 2022

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

Adrian Ubeda
Mega Sage
Mega Sage

Hi Juan,

From my point of view there's no exact answer for this question, however based on my own experience I've used events for sending notifications when the trigger is not easy as record inserted/updated. I use events when I need to control all the logic and all the flow that is running and decide when I want to send the notification basde on schedule or whatever.

Apart form this, using events allows you to use params as you wish and you can set params based on your needs.

If it was helpful, please give positive feedback.
Thanks,

If it was helpful, please give positive feedback! ✔
☆ Community Rising Star 22, 23 & 24 ☆