When Notification requires an Event (event is fired)? while Record inserted or updated also sends the notification? difference b/w event is fired & Record inserted or updated & triggered when we apply each of them

rishabh31
Mega Sage

When Notification requires an Event (event is fired)? while Record inserted or updated also sends the notification? 

What is the difference b/w event is fired & Record inserted or updated & triggered, when we apply each of them,

please help me to understand

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

Please find the basic difference between each one of them

Inserted:-

If there are no filter conditions applied then it will always send an Notification on insert of record in the table.

Update:-

If there are no filter conditions applied then it will always send an Notification on update of record in the table.

 

Event:-

Now event is generally used when we want to send notification based on specific/more complex condition where either have to glide records which is not possible using simple filter condition or we want to pass data which we can use in the notification script.

Also you cannot have all three because when you use event as an option in notification iser and update is hidden.

You can also go through the correct answer of the below thread for more information:-

https://community.servicenow.com/community?id=community_question&sys_id=667d8fe9db9cdbc01dcaf3231f961984

Please mark answer correct/helpful based on impact.

View solution in original post

4 REPLIES 4

OlaN
Giga Sage
Giga Sage

Hi,

An event can be triggered in a number of different places, like Business rules, Script includes, Workflow scripts, Flow designer scripts and so on. So it might not be triggered by a single event happening, like updating a incident record to resolved, but can happen on various actions, that all have in common that they trigger the event.

On the other hand is notification triggered by a record being created and/or updated which is when a specific action takes place. And is more obvious. When A happens -> trigger notification X.

Does this make it clearer?

Saurav11
Kilo Patron
Kilo Patron

Hello,

Please find the basic difference between each one of them

Inserted:-

If there are no filter conditions applied then it will always send an Notification on insert of record in the table.

Update:-

If there are no filter conditions applied then it will always send an Notification on update of record in the table.

 

Event:-

Now event is generally used when we want to send notification based on specific/more complex condition where either have to glide records which is not possible using simple filter condition or we want to pass data which we can use in the notification script.

Also you cannot have all three because when you use event as an option in notification iser and update is hidden.

You can also go through the correct answer of the below thread for more information:-

https://community.servicenow.com/community?id=community_question&sys_id=667d8fe9db9cdbc01dcaf3231f961984

Please mark answer correct/helpful based on impact.

Anita Mashal
Kilo Contributor

Hi,

Events are used in notifications whenever some specific conditions occur and in return, we need to take specific action for those conditions as a response.

Notifications can be sent in 3 different ways

  1. When a record is inserted/updated into the specific table: Notifications will be sent based on the insert/update of a record. In simple words, notification is sent whenever database CRUD operations are performed.
  2. When an event is triggered: We need to select the event and notifications will be sent when the selected event is triggered. In simple words, it will be triggered from a script.
  3. Triggered-It is triggered via flow action in flow designer.

 

 

If my answer is helpful, please mark it as helpful/correct.

Thanks for the response, please tell me what is CRUD?