| Name | Type | Description |
|---|---|---|
| event | object | Contains information of the event. It has the following structure: Possible values for |
| record | sys.data.Record | The record involved in the data operation. There is one case where this variable will be empty, which when the |
| oldRecord | sys.data.Record | If the event is of type RECORD_CHANGED, ACTION_PERFORMED or CONDITION_MET, this variable
will hold the version of the record before the event happened. |
//logs a message when there is a data event (the listener is configured accordingly)
sys.logs.info('*** EVENT: '+event.dataEvent);
sys.logs.info('*** RECORD: '+record.label());