Integrations•6 min read

Salesforce Integration Setup Guide

Connect your Salesforce CRM to Valstorm to access Accounts, Contacts, Leads, Opportunities, Activities (Tasks, Calls, and Events), SOQL/SOSL search, and file uploads directly from Valstorm and your AI assistants.


How Valstorm Connects to Salesforce

Valstorm separates Salesforce access into two layers so your organization stays secure and every user works under their own Salesforce permissions:

  1. Organization Scope (Admin Setup): Stores your Salesforce app credentials (Instance URL, Consumer Key, and Consumer Secret) encrypted per Valstorm organization. Credentials are private to their creator and Admins until explicitly shared with Users or User Groups.
  2. Personal User Scope (Team Members): Each team member signs in with their own Salesforce account using OAuth 2.0 Web Server Flow with PKCE (S256), linking their personal Salesforce user (005...).

Important: Each Valstorm organization must create and configure its own Salesforce External Client App (or use an existing Salesforce Connected App). Valstorm does not use shared platform credentials or the Client Credentials flow.


Prerequisites

Before you begin, make sure you have:

  • Salesforce Administrator access (or permissions to create/manage External Client Apps in App Manager and view My Domain).
  • Valstorm Admin or delegated Salesforce Org Manager access in Valstorm Command Center.

Step 1: Create a Salesforce External Client App

  1. Log in to Salesforce, click the Setup gear icon in the top-right corner, and select Setup.
  2. In the left Quick Find box, search for App Manager (opens Lightning Experience App Manager).
  3. Click New App in the top-right corner, then select New External Client App.

    Already have a legacy Connected app for Valstorm in Lightning Experience App Manager? Existing Connected Apps continue to work—open yours to verify the OAuth settings in Steps 2–3 and skip to Step 4.

  4. Under Basic Information, fill in:
    • External Client App Name: e.g., Valstorm
    • API Name: auto-populated (e.g., Valstorm)
    • Contact Email: your admin email address
    • Distribution State: Local
  5. Under API (Enable OAuth Settings), check Enable OAuth.

Step 2: Configure App Settings (Callback URL & Required OAuth Scopes)

Callback URL

Under App Settings, enter the following Callback URL:

TEXT
https://api.valstorm.com/v1/salesforce/auth/callback

OAuth Scopes

Move all three of the following required scopes from Available OAuth Scopes to Selected OAuth Scopes:

Required OAuth ScopeScope KeyWhy It's Needed
Access the identity URL service (id, profile, email, address, phone)idIdentifies the signed-in Salesforce user (005...) and profile details.
Manage user data via APIs (api)apiEnables live CRM reads/writes, SOQL/SOSL queries, activities, and file uploads.
Perform requests at any time (refresh_token, offline_access)refresh_token, offline_accessKeeps sessions connected automatically without repeated logins.

Step 3: Configure Flow Enablement & Security

Still under API (Enable OAuth Settings), configure Flow Enablement and Security as follows:

Flow Enablement — Leave Unchecked

  • Leave Enable Client Credentials Flow unchecked (and leave the other optional Flow Enablement checkboxes unchecked).

Valstorm authenticates via OAuth 2.0 Web Server Flow + PKCE and does not use the Client Credentials flow.

Security — Confirm All 3 Required Options Are Checked

  • Require secret for Web Server Flow
  • Require secret for Refresh Token Flow
  • Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows (enabled by default on new External Client Apps)

Click Create (or Save).

Propagation Note: Salesforce typically takes 2–10 minutes to activate a newly created or updated External Client App. If you get an OAuth error immediately after saving, wait a few minutes and try again.


Step 4: Retrieve Your Consumer Key and Consumer Secret

  1. In Salesforce Setup, search Quick Find for External Client App Manager and click your new External Client App.
  2. Open the Settings tab, expand OAuth Settings, and click Consumer Key and Secret.

    Using an existing legacy Connected app? Go to Setup → App Manager → click the dropdown arrow next to the app → View → Manage Consumer Details.

  3. Complete Salesforce's email or MFA verification code prompt.
  4. Copy both values:
    • Consumer Key (Client ID)
    • Consumer Secret (Client Secret)

Step 5: Find Your Salesforce My Domain (Instance URL)

  1. In Salesforce Setup, search the left Quick Find box for My Domain (under Company Settings).
  2. Copy your Current My Domain URL (for example: https://yourdomain.my.salesforce.com).

Step 6: Save Organization Credentials in Valstorm

  1. Open Valstorm Command Center.
  2. Go to Integrations → Salesforce and open the Organization Scope section.
  3. Click Add New Credential and enter:
    • Label: e.g., Production Salesforce
    • Instance URL: your My Domain URL from Step 5 (e.g., https://yourdomain.my.salesforce.com)
    • Consumer Key (Client ID): from Step 4
    • Consumer Secret (Client Secret): from Step 4
  4. Save the credential.
  5. (Recommended) Click Verify to confirm Valstorm can reach your Salesforce organization.
  6. Under Shared With, add the Users or User Groups who should be allowed to connect with this Salesforce organization credential.

Step 7: Connect Individual Users (Personal User Scope)

Once Organization credentials are saved and shared, each team member connects their own Salesforce account:

  1. Open Valstorm Command Center → Integrations → User Scope.
  2. Find Salesforce and click Connect Salesforce.
  3. Sign in to Salesforce in the popup window and click Allow to approve access via OAuth 2.0 + PKCE.
  4. Once connected, Valstorm links your personal Salesforce user (005...) so all CRM queries, tasks, call logs, events, and record updates execute under your own Salesforce identity and permissions.

Troubleshooting

IssueWhat to Check
OAuth login fails right after setupWait 2–10 minutes after saving your External Client App in Salesforce so OAuth settings finish propagating, then retry.
redirect_uri_mismatch errorConfirm the Callback URL in Salesforce is https://api.valstorm.com/v1/salesforce/auth/callback with exact spelling and no trailing slash.
PKCE or Client Secret errorRe-open your app's OAuth Settings in Salesforce and verify all three Security boxes in Step 3 are checked and Enable Client Credentials Flow is unchecked.
Missing user identity or refresh issuesVerify all three OAuth scopes in Step 2 (id, api, refresh_token/offline_access) are in Selected OAuth Scopes.
Team members don't see the Salesforce orgOpen Command Center → Integrations → Salesforce (Organization Scope) and confirm those users or their User Group are added under Shared With.

Need help? You can also view this guide inside Valstorm at Command Center → Integrations → Salesforce → Setup Guide, or ask your Valstorm AI assistant to walk you through setting up or verifying Salesforce.