Synchronize Salesforce Incidents with ServiceNow Incidents based on Platform Events > Using the Synchronize Salesforce Incidents with ServiceNow Incidents recipe > Configuring and publishing the Salesforce connection
  

Configuring and publishing the Salesforce connection

To create a Salesforce connection that supports a Salesforce platform event, perform the following steps:
    1Open the SalesforceConnectionIncident connection.
    2In the Type field, select Salesforce.
    3In the Run On field, select the Secure Agent.
    4In the Authentication Type field, select Password or OAuth as required.
    Based on the authentication type selected, perform one of the following steps:
    5On the Event Sources tab, enter the API name of the Salesforce platform event prefixed with /event/ in the Event Consumer field. For example, /event/Subscription_to_incident__e.
    When the Salesforce platform event is called, the event refers to the value specified in this field.
    Note: Ensure that the value in the Event Consumer field is the same as the event consumer you created for the platform event in the Salesforce organization.
    6 Save and publish the connection.