Event fired by sytem

Saurabh Anand
Tera Guru

Hello,

 

I am just trying to understand about the events that are fired by the system. What do they actually do and when exactly they will trigger the notification. Any guidance would be greatly appreciated.

 

Thanks in advance.

2 REPLIES 2

Appanna M
Tera Guru

Hello @Saurabh Anand ,

 

In ServiceNow, events are fired based on various actions or changes that occur within the platform, and notifications are triggered based on these events. Here's a simple example to illustrate how events can fire and trigger notifications:

Let's consider a scenario where an incident is created in the ServiceNow IT Service Management (ITSM) module. When an incident is created, an event is fired, and based on this event, notifications can be triggered to notify relevant stakeholders such as support groups, assignment groups, or individuals.

  1. Event: An event is fired when an incident is created in ServiceNow. This event could be a 'incident.created' event.

  2. Notification: Based on the 'incident.created' event, a notification rule can be set up to trigger notifications to the assigned support group and the incident reporter.

The events can be fired from any server side script using the below syntax:

gs.eventQueue('event.name', GlideRecord, parm1, parm2); // standard form

For more info please refer https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/platform-events/con...

 

Please Mark My Answer as Helpful and Accept as Solution, if you find this article helpful or resolves your issue.

shloke04
Kilo Patron

Hi @Saurabh Anand ,

Best place to review this is within documentation itself to get the info you are looking for:

 

Please refer :

https://developer.servicenow.com/dev.do#!/learn/learning-plans/washingtondc/new_to_servicenow/app_st...

 

https://docs.servicenow.com/bundle/washingtondc-build-workflows/page/administer/platform-events/conc...

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke