Event management

Events that trigger different outcomes in an instance run in ServiceNow. An event can be invoked from any script on the server side. The main outcome from an event being triggered is either a notification or a script action. Notifications are usually emails, and we will take a look at script actions later on in this chapter.

First of all, to trigger an event, the event will need to be defined. To define an event, we can navigate to System Policy | Events | Registry and click on the New button. Upon doing this, we are given the form shown in Figure 6.4:

Figure 6.4: New event form

In the form, we need to give the event a name. ...

Get Mastering ServiceNow Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.