The contactchange event has two properties, reason and contactID.  See the following table for info on when events are generated and what values the properties take on.

API Call that triggers the event

event.reason has valid (!== undefined) event.contactID?

"create" if the contact did not already exist

"update" if the contact already existed

remove "remove" yes
clear "remove" no (because all contacts are removed!)


Once you have a contactID, if you want to turn that into a contact, you can call find({ filterBy: ['id'], filterOp: 'equals', filterValue: event.contactID }).

Document Tags and Contributors

Contributors to this page: kscarfone, jswisher,
Last updated by: kscarfone,