Salesforce - New PushTopic event trigger (real-time)
This trigger uses the Salesforce Streaming API to monitor Salesforce in real-time for new PushTopic events in subscribed channels. The trigger also fetches past events by default when you start the recipe. It only fetches events that Salesforce published while the PushTopic remained active. Salesforce keeps PushTopic events for up to 24 hours, so the recipe doesn't process older events.
FETCHING PAST EVENTS CAN USE YOUR SALESFORCE EVENT ALLOCATION
Fetching past events can use a significant amount of your Salesforce event allocation. Set Events to fetch on recipe start to Only new events to skip them.
Prerequisites
You must create a PushTopic object in Salesforce before you can use this trigger. Workato recommends creating focused PushTopics to minimize the number of trigger events and avoid running jobs on unnecessary trigger events.
Workato fetches the output schema as defined in the PushTopic automatically. You can define a new schema by using a SOQL query or manually specifying the fields.
The recipe receives data as specified in the schema
Input
| Input fields | Description |
|---|---|
| Pushtopics | Select a PushTopic to subscribe to. |
| Events to fetch on recipe start | Optional. Select whether to fetch events published in Salesforce while the recipe was inactive, on first start or restart. Defaults to All available events (resume from last processed) if left blank. All available events (resume from last processed) resumes from the last event the recipe processed. If the recipe hasn't processed any events, or the last processed event is no longer available, the trigger fetches all events Salesforce keeps. Only new events fetches only events published after the recipe starts. |
| Output schema | Define a new schema by using a SOQL query or manually adding fields. |
Output
| Output fields | Description |
|---|---|
| Replay ID | A number indicating the sequence of event notifications. |
| Created date | The date and time the event was created. |
| Type | The type of trigger event. |
Additional outputs load dynamically based on the PushTopic schema.
Last updated: