Skip to content

Connecting Salesforce to Sebastian

Sebastian reads your customers, contacts, deals, deal line items and record owners from Salesforce. It uses them for revenue planning and to match contracts to customers. It only reads. It never changes anything in Salesforce.

  • In Salesforce: an administrator who can create an app for Sebastian to sign in through, and a user for it to run as. For the session token method, someone who can sign in to your Salesforce account from the Salesforce command line.
  • In Sebastian: someone with the Admin or IT Admin role, or a custom role with full access to Integrations.
Salesforce object What Sebastian uses it for
Accounts Customers, with industry, billing city and country, website and owner
Contacts People at those customers
Opportunities Deals, amounts, stages and close dates
Opportunity products Line items on deals
Users Record owners

The user Sebastian signs in as needs read access to these objects. No write access is needed, so please don’t add any.

Choose one under Authentication on the Salesforce panel. Each method has its own fields, and what you paste for one is not carried over to another.

Use this when you have an app with the client credentials flow turned on and a user for it to run as. Paste:

  • Login URL, for example https://your-domain.my.salesforce.com
  • Consumer key
  • Consumer secret

Use this for access with no sign-in screen, using your own certificate and a pre-authorized user. Paste:

  • Login URL, for example https://login.salesforce.com
  • Consumer key
  • Username, the pre-authorized user
  • RSA private key, the key your certificate was made from

There is no consumer secret. No one has to type anything again, but the certificate expires: renew it in Salesforce and replace the key in Sebastian before that date.

Use this when you can’t create an app for Sebastian. It is the fastest way in and the shortest-lived: the token ends with the session, and reconnecting means filling in the form again.

Use a dedicated read-only integration user, never a personal or administrator login. Sign that user in with the Salesforce command line, then run:

sf org display --target-org <integration-alias>

Paste only these two values into Sebastian:

  • Instance URL
  • Access token

Do not share the rest of the command’s output or the auth URL it can show. They can sign in as that user.

The app behind client credentials and JWT bearer has been a Connected App. Salesforce has been moving new setups to External Client Apps, and a newer Salesforce account may not let you create a new Connected App. If yours doesn’t, create an External Client App with the same flow turned on instead (client credentials, or JWT bearer with your certificate) and use its consumer key, plus its consumer secret for client credentials. Existing Connected Apps keep working. The session token method needs no app. Check Salesforce’s own documentation for the current steps, because they change.

Each method also has an optional API version (for example v62.0). Leave it empty to use Sebastian’s default.

  1. In Salesforce, set up the method you chose above: the app, the user it runs as, and for JWT bearer the certificate.
  2. In Sebastian, go to Settings > Integrations > Salesforce.
  3. Choose the Authentication method, fill in the fields and click Connect.
  4. Sebastian checks the credentials as you save them, then starts reading. The panel shows the name of your Salesforce account, with a Sandbox label if it is a sandbox.
  • “Salesforce did not accept these credentials.” Check every value, and that the user can sign in and read the objects above.
  • “Disconnect HubSpot before connecting Salesforce.” Only one CRM (HubSpot or Salesforce) can be connected at a time. Disconnect the other one first. The name of whichever CRM is connected appears in the message.
  • A question asking whether to switch to Salesforce, or to connect a different Salesforce account. Sebastian has already read customers from another CRM or another Salesforce account. The message says how many customers would be replaced and how many contracts would be matched again. Click Connect to continue, or cancel to keep what you have.
  • “You don’t have access to this. Ask an admin in your organization for access.” Your Sebastian role can’t manage integrations. Ask a Sebastian admin.
  • One CRM. Only one CRM (HubSpot or Salesforce) can be connected at a time.
  • Expiring credentials. A session token ends with its session. A JWT bearer certificate has an expiry date. When either stops working, Sebastian can no longer read, so replace it before then or reconnect.
  • Secrets are write-only. Sebastian encrypts what you paste and never shows it again. To change it, click Replace next to “Credentials saved”.
  • How often it reads. Sebastian reads Salesforce every 30 minutes by default. Open Salesforce under Settings > Integrations to choose Sync frequency (every 5 minutes to every 24 hours) or click Sync now. Re-read everything reads every record again, and can also run on a schedule you choose.
  • Disconnecting. Click Disconnect on the Salesforce panel in Sebastian.