SuiteScript 2.1 Event Subscriber Script Type
Event Subscriber scripts are server scripts that run asynchronously after supported events occur. They support record events, such as when a record of a selected type is created, updated, or deleted.
Use an Event Subscriber script for follow-up processing that does not need to finish before the originating record operation completes. For example, you can send a notification after an invoice is created. You can also update related information after a record changes.
The subscription criteria in the Event Subscriber definition determine which supported events trigger the script.
For more information about Event Subscriber scripts, see the following topics: