Parameters
NameTypeDescription
eventobject

Contains information of the event. It has the following structure:

{
  "type": "CUSTOM",
  "customEvent": "newNote",
  "customData": {
    "noteId": "589cdb2ae201af1d75ec2d83"
  }
}

customEvent is the name of custom event that triggered the listener.

customData is an object sent by user as data opf this custom event.

Samples
 
//log note ID create
sys.logs.info('*** NOTE CREATED: '+customData.noteId);