- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 04:56 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 05:19 AM
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
Mohit Kaushik
ServiceNow MVP (2023-2025)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 05:19 AM
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
Mohit Kaushik
ServiceNow MVP (2023-2025)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 05:21 AM
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,
☆ Community Rising Star 22, 23 & 24 ☆