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. Event names are usually words split by full stops and underscores, and if you look at the list of events, you will see the general format used for events. It is also good practice to fill in the table field for reference. The F
ired by
and Description
fields are simple text fields, but it is a good idea to fill these in with details of when the event should...