Setup guide

Connect Salesforce to Sumptus

Connecting Salesforce lets employees tag the client they met from your Salesforce contacts when they submit an expense, and logs approved expenses back to that contact. Your Salesforce admin creates a small Sumptus app inside your own org, then pastes its keys into Sumptus.

Who: a Salesforce admin, plus a Sumptus admin Time: about 10 minutes, plus up to 10 minutes for Salesforce to activate the app
Why your own app? The Sumptus app lives in your Salesforce org, so your admin decides who can use it and can switch it off at any time. Nothing is installed from outside your org.

1. Before you start

2. Create the Sumptus app in Salesforce

  1. In Salesforce, open Setup (gear icon, top right).
  2. In Quick Find, search for External Client App Manager and open it.
  3. Click New External Client App.
  4. Fill in the basics:
    • External Client App Name: Sumptus
    • Contact Email: your admin email
    • Distribution State: Local
  5. Expand API (Enable OAuth Settings) and check Enable OAuth.
  6. In Callback URL, paste exactly:
    https://dlblturjbxeujfzwslys.supabase.co/functions/v1/crm-oauth-callback
  7. Under OAuth Scopes, add these two:
    • Manage user data via APIs (api)
    • Perform requests at any time (refresh_token, offline_access)
  8. Under Flow Enablement and Security, use these settings:
    SettingValue
    Require Proof Key for Code Exchange (PKCE)Checked
    Require secret for Web Server FlowChecked
    Require secret for Refresh Token FlowChecked
    Leave the other flow options unchecked.
  9. Click Create.

3. Set who can use it

  1. On the new app, open the Policies tab and click Edit.
  2. Under OAuth Policies, set:
    SettingValue
    Permitted UsersAll users may self-authorize, or Admin approved users are pre-authorized if you want to limit it. In that case, add the profile or permission set of the user who will connect.
    IP RelaxationRelax IP restrictions. Employees connect from phones on many networks.
    Refresh Token PolicyRefresh token is valid until revoked, so the connection keeps working until you disconnect it.
  3. Click Save.

4. Copy the Consumer Key and Secret

  1. On the app, open the Settings tab and expand OAuth Settings.
  2. Click Consumer Key and Secret. Salesforce emails you a verification code; enter it.
  3. Copy the Consumer Key and the Consumer Secret. Keep the secret private: share it only through the Sumptus app in the next step, not by email.
Wait about 10 minutes before connecting. Salesforce takes a few minutes to activate a new app. Connecting earlier shows an invalid_client_id error.

5. Connect in Sumptus

  1. Open Sumptus and go to Settings → Integrations.
  2. Next to Salesforce, tap Connect.
  3. Choose Production, or Sandbox if you're connecting a sandbox org.
  4. Paste the Consumer Key and Consumer Secret, then tap Connect with Salesforce.
  5. Sign in to Salesforce as the user you chose in step 1, and click Allow.
  6. You're returned to Sumptus, and Salesforce shows as Connected. Employees can now search your Salesforce contacts on the Submit screen.

6. What Sumptus can access

Sumptus does not delete records or change contact or account fields. It acts with the permissions of the Salesforce user who connected, so it can only see what that user can see. The Consumer Secret and Salesforce access are stored on Sumptus's servers and are never sent to employees' devices. See our Privacy Policy and Security page.

7. Disconnecting

Tasks already logged on contacts stay in Salesforce.

8. Troubleshooting

MessageWhat to do
invalid_client_idThe Consumer Key is wrong, or the app is less than about 10 minutes old. Copy the key again, wait, and reconnect.
redirect_uri_mismatchThe app's Callback URL doesn't match. Paste the URL from step 2 exactly, with no spaces or trailing slash.
OAUTH_APPROVAL_ERROR / "user isn't approved"The Permitted Users policy blocks this user. Set it to self-authorize, or add the user's profile or permission set (step 3).
"API is not enabled for this organization"Your Salesforce edition or user doesn't have API access. Check the edition (step 1) and that the user has the API Enabled permission.
invalid_grant / login page rejects youProduction vs Sandbox doesn't match your org. Pick the right one in Sumptus and try again.
token_exchange_failedUsually a wrong Consumer Secret. Copy it again and reconnect.
Sumptus asks you to reconnectAccess was revoked or the user's password or permissions changed. Tap Reconnect in Settings → Integrations; your app keys are remembered.

Still stuck? Email info@sumptus.co with a screenshot of the error. Never include your Consumer Secret.


Last updated October 2026 · © 2026 Sumptus Technologies LLC