Connect Salesforce

Use Salesforce data in your processes, or let a change in Salesforce start a process.

What it is

Salesforce Service Cloud is a platform for customer service and customer data. Odigos connects through an External Client App that you create in Salesforce yourself. Odigos manages the app's token.

What you can do with it in a process

There is no separate Salesforce block. In Orchestra, call Salesforce with the REST API task block. Under Connection (authentication), select the Salesforce connection from Hub. Odigos then sends the connection's token with the request.

To start a process when something changes in Salesforce, use a listener. A listener follows a Salesforce channel, such as the changes to contacts, and starts a process for each message. If your Salesforce organisation reaches its limit for delivering messages, the listener can instead ask for changed records every few minutes. For each listener, Orchestra shows whether it is running, how many messages came in and whether anything went wrong. You also turn a listener on or off there.

Connecting in Hub

You connect Salesforce in Hub, under Connection via External Client App. You need administrator rights in Salesforce for this.

  1. In Hub, open the Salesforce page and click Set up connection.
  2. Hub asks you to confirm that you are logged in to the right environment. Click Yes, continue.
  3. In Salesforce, go to Setup and search for External Client Apps. Choose New External Client App, or open an existing one.
  4. Turn on OAuth, enter the callback URL that Hub shows and choose the scopes api, refresh_token and openid.
  5. In the policies, set the refresh token to stay valid until it is revoked.
  6. Enter the Consumer Key and the Consumer Secret in Hub. Choose whether it is a sandbox or a production environment.
  7. Authorise Odigos in Salesforce.
The Salesforce Service Cloud page in Hub, with the Set up connection button for the connection via an External Client App.

Allow some time after a change
A change to the app in Salesforce often only takes effect after 30 to 60 minutes. An existing connection through a Connected App keeps working, but you can no longer change it in Hub.

Data in your process

There are no fixed tags for Salesforce. A process that a listener starts receives the Salesforce message unchanged as input. In the REST API task block, pick what you need from the response with a JSONPath or with Convert result to tags.

See also