Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
PushTopic Events (Legacy)
PushTopic events provide a secure and scalable way to receive notifications for changes
to Salesforce data that match a SOQL query you define.
Use PushTopic events to:
- Receive notifications of Salesforce record changes, including create, update, delete, and undelete operations.
- Capture changes for the fields and records that match a SOQL query.
- Receive change notifications for only the records a user has access to based on sharing rules.
- Limit the stream of events to only those events that match a subscription filter.
A typical application of PushTopic events is refreshing the UI of a custom app from Salesforce record changes.
PushTopic events can be received by:
- Pages in the Salesforce application
- Application servers outside of Salesforce
- Clients outside the Salesforce application
The generation of PushTopic notifications follows this sequence.
- Create a PushTopic based on a SOQL query. The PushTopic defines the channel.
- Clients subscribe to the channel.
- A record is created, updated, deleted, or undeleted (an event occurs). The changes to that record are evaluated.
- If the record changes match the criteria of the PushTopic query, a notification is generated by the server and received by the subscribed clients.