Create Streaming API PushTopic
sf_create_push_topicCreate a Streaming API PushTopic to publish real-time record changes. Specify an SOQL query and operations, then clients subscribe via CometD to receive notifications.
Instructions
Creates a Streaming API PushTopic for real-time record change notifications via the SObject API. Clients subscribe to /topic/TopicName using the CometD protocol. Specify the SOQL query that filters which records trigger events, and configure which operations (create, update, delete, undelete) and fields trigger notifications.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SOQL query for the PushTopic | |
| topicName | Yes | PushTopic name (max 25 chars) | |
| apiVersion | No | API version number (e.g. 62) | |
| notifyForFields | No | Which fields trigger notifications | Referenced |
| notifyForOperationCreate | No | Notify on record create | |
| notifyForOperationDelete | No | Notify on record delete | |
| notifyForOperationUpdate | No | Notify on record update | |
| notifyForOperationUndelete | No | Notify on record undelete |