Salesforce Connector supports the Salesforce Streaming API. You can configure an event target in a Salesforce connection to publish messages to Salesforce custom platform events. You can use the event target in a process to publish mesages in near real time.
Note: You cannot configure an event target to publish messages to Salesforce PushTopic queries.
After you define an event target for a Salesforce connection, you can publish the connection on a Secure Agent Group or a Secure Agent machine. You can then access the event target in a process and deploy the process on a Secure Agent Group or a Secure Agent machine to consume the process objects generated by the event target downstream.
To create event targets for a Salesforce connection, click Add Event Target on the Event Targets tab. Select the event target type as Event Target. You can add one or more event targets for each Salesforce connection that you create.
The following table describes the basic event target properties that you can configure:
Property
Description
Name
Required. The event target name that appears in the Process Designer. The name must be unique for the connection.
The name must start with an alphabet and can contain only alphabets, numbers, or hyphens (-).
Description
Optional. A description for the Salesforce event target that appears in the Process Designer.
Enabled
Select Yes to make the event target available immediately after it is published.
Select No to disable the event target until you are ready to use it.
Default is Yes.
The following table describes the event target property that you can configure:
Event Target Property
Description
Event Producer
Required. Name of the Salesforce custom platform event to which you want to publish messages.
To publish messages to platform events, enter the API name that you defined for the custom platform event in Salesforce, prefixed by the term /event/.
For example, consider a Salesforce custom platform event with the API name set to CS_PlatformEvent_e as shown in the following image:
For this Salesforce custom platform event, enter the following value in the Event Producer field:
/event/CS_PlatformEvent_e
Note: The Salesforce event target must be unique across multiple Salesforce connections that run on the same Secure Agent group or Secure Agent machine.