Skip to content

Salesforce connects with OAuth 2.0 through Truto's Salesforce app: the user enters their org's subdomain, then signs in to Salesforce and allows access.

Install the Salesforce integration

Install Salesforce from Available integrations in each environment you connect accounts from.

Use your own Salesforce OAuth app (optional)

Truto's own Salesforce app works with any org, so you rarely need your own. A Salesforce app you create now is an External Client App. It only accepts sign-ins from your own org until you package it (second-generation managed package) and each customer installs that package.

If you still want your own app, enable OAuth, add the redirect URL below and select the api and refresh_token, offline_access scopes. Keep PKCE on. Then enter the app's Consumer Key and Consumer Secret on the installed integration. See Overriding OAuth credentials.

https://api.truto.one/connect/salesforce/callback

If you use a redirect URL on your own domain, add that URL instead.

Connect a Salesforce account

Warning

The person who connects needs the API Enabled permission in Salesforce, and the org must have API access: Enterprise, Unlimited, Performance or Developer Edition, or Professional Edition with the API add-on. Without it, Truto's calls to Salesforce fail.

  1. In Integrated Accounts, click Connect Account. Click Connect Account

  2. Enter a Tenant ID (your customer's ID; Truto creates the tenant if it is new), or pick one under Existing tenant (optional). Check the Environment and the Region (where Truto places the account; Western North America by default). To open the link straight on Salesforce, pick it under Advanced settings → Integration (optional). Click Get connection link. Get connection link

  3. Click the open-in-new-tab button, or click Copy and send the link to your customer so they connect their own Salesforce account. The link works for 7 days, until an account is connected with it. Share connection link

  4. Click Get Started if it shows, then select Salesforce. Select Salesforce

  5. Fill in the form and click Connect:

    Field Required What to enter
    Salesforce Subdomain Yes The part of your Salesforce URL before .my.salesforce.com. If you sign in at https://acme--prod.my.salesforce.com, enter acme--prod.

    Salesforce subdomain in the browser address bar

  6. Sign in to Salesforce and allow access.

  7. Close the tab when you see Connection successful. The new account appears under Integrated Accounts. Click its Account ID to see its details and make API calls.