Events

Events that may generate a notification are the creation, update, delete, or undelete of a record. The PushTopic NotifyForOperationCreate, NotifyForOperationUpdate, NotifyForOperationDelete, and NotifyForOperationUndelete fields enable you to specify which events may generate a notification in that PushTopic channel. The fields are set as follows:

FieldDescription
NotifyForOperationCreatetrue if a create operation should generate a notification, otherwise, false.
NotifyForOperationDeletetrue if a delete operation should generate a notification, otherwise, false.
NotifyForOperationUndeletetrue if an undelete operation should generate a notification, otherwise, false.
NotifyForOperationUpdatetrue if an update operation should generate a notification, otherwise, false.

In API version 28.0 and earlier, you use the NotifyForOperations field to specify which events generate a notification, and can only specify create or update events. The NotifyForOperations values are:

NotifyForOperations ValueDescription
All (default)Evaluate a record to possibly generate a notification whether the record has been created or updated.
CreateEvaluate a record to possibly generate a notification only if the record has been created.
UpdateEvaluate a record to possibly generate a notification only if the record has been updated.
ExtendedA value of Extended means that neither create or update operations are set to generate events. This value is provided to allow clients written to API version 28.0 or earlier to work with Salesforce organizations configured to generate delete and undelete notifications.

The event field values together with the NotifyForFields value provides flexibility when configuring when you want to generate notifications using Streaming API.