Synchronize Salesforce Cases with ServiceNow Incidents based on Platform Events > Using the Synchronize Salesforce Cases 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 SalesforceConnectionCase connection.
    2In the Run On field, select the Secure Agent.
    3In the Authentication Type field, select Password or OAuth as required.
    Based on the authentication type selected, perform one of the following steps:
    4On 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_Case__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.
    5 Save and publish the connection.