Salesforce Integration

Scout’s Salesforce integration allows you to interact with your Salesforce CRM directly from Scout, enabling automated data access, SOQL queries, and record management across both Production and Sandbox environments.

Connection Methods

Choose the method that best fits your needs:

Quick Connect (Recommended) - Use Scout’s pre-configured OAuth app. No Salesforce setup required. Best for quick testing, users without admin access, and standard use cases.

Custom OAuth App - Create your own Salesforce Connected App. Best for enterprise deployments, custom security requirements, and dedicated integration monitoring.


Quick Connect Setup

The fastest way to connect - no Salesforce configuration needed!

2

Connect with OAuth

  1. Click Connect with OAuth button
  2. Select your environment:
    • Production - For live Salesforce instance (login.salesforce.com)
    • Sandbox - For test/development instance (test.salesforce.com)
3

Authorize in Salesforce

  1. Sign in to your Salesforce account (if needed)
  2. Review the requested permissions
  3. Click Allow to grant Scout access
  4. You’ll be redirected back to Scout
4

Verify Connection

Your Salesforce workspace should now appear as connected with:

  • Green status indicator
  • Environment type (Production or Sandbox)
  • Connection date

Custom OAuth App Setup

For enterprise deployments requiring custom credentials.

Prerequisites

Required Salesforce Editions:

  • Available in: Group, Essentials, Professional, Enterprise, Performance, Unlimited, and Developer Editions
  • Works in both Salesforce Classic and Lightning Experience

User Permissions Required: To create a Connected App, you need one of the following:

  • Customize Application AND Modify All Data, OR
  • Customize Application AND Manage Connected Apps

If you don’t have these permissions, contact your Salesforce administrator. You can also sign up for a free Salesforce Developer Edition which gives you full admin access.

1

Enable Connected App Creation

Before creating your first Connected App, ensure this setting is enabled:

  1. From Setup, enter External Client Apps in Quick Find
  2. Select External Client App Settings
  3. Turn on Allow creation of connected apps

This step is only needed once per Salesforce org. If you’ve created Connected Apps before, this is already enabled.

2

Create Connected App in Salesforce

  1. Log in to Salesforce and click the gear iconSetup
  2. In Quick Find, search for App Manager
  3. Click New Connected App
3

Configure Basic Information

Fill in the required and optional fields:

Required Fields:

  • Connected App Name: Scout CRM Integration (or your preferred name)
    • Must be unique within your org
    • Displays in App Manager and on App Launcher tile
  • API Name: Auto-populated from the name (letters, numbers, and underscores only)
  • Contact Email: Your email address (used by Salesforce for support contact)

Optional Fields:

  • Contact Phone: Your phone number for Salesforce support contact
  • Logo Image URL: HTTPS URL to your logo (GIF, JPG, or PNG, preferably under 20KB)
    • Logo displays on App Launcher tile and OAuth consent page
    • Salesforce generates a default logo from app initials if not provided
  • Info URL: Web page with more information about your app
  • Description: Up to 256 characters (displays on App Launcher tile)
4

Enable OAuth Settings

  1. Check Enable OAuth Settings

  2. Set Callback URL: https://studio.scoutos.com/oauth/salesforce/success

  3. Add Selected OAuth Scopes (select from Available OAuth Scopes and click Add arrow):

    • Full access (full)
    • Access the identity URL service (id, profile, email, address, phone)
    • Manage user data via APIs (api)
    • Manage user data via Web browsers (web)
    • Perform requests at any time (refresh_token, offline_access)
  4. Configure Flow Enablement:

    • Check Enable Client Credentials Flow
    • Check Enable Authorization Code and Credentials Flow
  5. Configure Security Settings:

    • Check Require Secret for Web Server Flow
    • Check Require Secret for Refresh Token Flow
    • Check Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows
  6. Click Save then Continue

The callback URL must match exactly. Scout requires these specific OAuth scopes and security settings to enable full API access, automatic token refresh, and secure authentication flows.

5

Copy Credentials

  1. From the Connected App detail page, copy your Consumer Key (Client ID)
  2. Click Click to reveal and copy your Consumer Secret (Client Secret)
  3. Keep these credentials secure
6

Connect to Scout

  1. Navigate to https://studio.scoutos.com/integrations
  2. Click the Salesforce card
  3. Click Add Workspace
  4. Check Use custom Salesforce Connected App credentials
  5. Select your environment (Production or Sandbox)
  6. Enter your Client ID (Consumer Key) and Client Secret (Consumer Secret)
  7. Click Connect with OAuth
7

Authorize and Verify

  1. Authorize the connection in Salesforce (click Allow)
  2. Verify your custom workspace appears as connected in Scout

Verify the Connection

Test your Salesforce integration with an AI agent:

1

Enable for an Agent

  1. Navigate to any agent’s settings
  2. Go to the Tools tab
  3. Toggle Salesforce to enable it
2

Test with Queries

Ask your agent to interact with Salesforce:

  • “List the last 5 accounts from Salesforce”
  • “Search for contacts with email containing ‘@example.com’”
  • “Get details for opportunity with ID 006XXXXXXXXXXXXXXX”

The agent will use the Salesforce integration to retrieve and display data.

For more information on agent tools, see AI Agents Documentation.


Available Capabilities

The Salesforce integration provides comprehensive CRM access:

Data Querying

  • Execute custom SOQL queries
  • SOSL search across multiple objects
  • List available Salesforce objects
  • Get object field metadata

Record Management

  • Get specific records by ID
  • Create new records in any object
  • Update existing record fields
  • Delete records from Salesforce

Advanced Operations

  • Direct REST API calls to any endpoint
  • Bulk operations for large data sets
  • Relationship queries across objects

Use Cases

Customer Support Automation

  • Look up customer information from Salesforce
  • Retrieve order history and case details
  • Update case status and add notes
  • Create follow-up tasks automatically

Sales Intelligence

  • Query pipeline data and forecasts
  • Find and update opportunity information
  • Search for contacts and accounts
  • Track activity history

Data Analysis

  • Custom SOQL queries for reporting
  • Cross-object data analysis
  • Field-level data validation
  • Metadata exploration

Best Practices

Security

  • Keep Consumer Key and Consumer Secret secure
  • Use Sandbox for testing before Production
  • Consider creating a dedicated Salesforce user profile with limited permissions for Scout
  • Periodically rotate Connected App credentials

Configuration

  • Use descriptive names for Connected Apps
  • Consider IP restrictions in Salesforce for enhanced security
  • Review session timeout settings to align with security requirements

Usage

  • Monitor API limits to avoid throttling
  • Use selective SOQL queries with WHERE clauses to minimize API usage
  • Implement proper error handling in workflows and agents

Maintenance

  • Periodically review active Connected Apps
  • Update OAuth scopes as needs change
  • Track integration usage in Salesforce Setup

Troubleshooting

”You don’t have permission to create Connected Apps”

Solution: You need specific Salesforce permissions to create Connected Apps:

  • Contact your Salesforce administrator to request: Customize Application AND (Modify All Data OR Manage Connected Apps)
  • Alternative: Sign up for a free Salesforce Developer Edition where you have full admin access
  • Check if “Allow creation of connected apps” is enabled: Setup → External Client Apps → External Client App Settings

”Invalid client credentials”

Solution: Verify you copied both Consumer Key (Client ID) and Consumer Secret (Client Secret) correctly from your Salesforce Connected App.

”Redirect URI mismatch”

Solution: Ensure the Callback URL in your Connected App is exactly: https://studio.scoutos.com/oauth/salesforce/success

”User hasn’t approved this app”

Solution:

  • Sign in to Salesforce with an authorized user
  • If using Sandbox, ensure you’re logging in to test.salesforce.com
  • Check if the Connected App is approved for the user profile

”Authentication failure”

Solution:

  • Verify you selected the correct environment (Production vs Sandbox)
  • If using Sandbox, ensure the Connected App exists in your Sandbox instance
  • Check that OAuth scopes include both full and refresh_token

”Token expired”

Solution: The integration automatically refreshes tokens. If you still encounter errors:

  1. Navigate to Salesforce integration in Scout
  2. Click Reconnect on your workspace
  3. Re-authorize the connection

”Insufficient privileges”

Solution:

  • Ensure the authorizing user has appropriate permissions
  • Check object-level and field-level security in Salesforce
  • Verify the user profile has API access enabled

”API limit exceeded”

Solution:

  • Monitor API usage in Salesforce Setup → System Overview
  • Implement query optimization to reduce API calls
  • Consider upgrading Salesforce edition for higher limits

Sandbox Connection Issues

  • Ensure your Sandbox is active and accessible
  • Verify you’re using test.salesforce.com for login
  • Check that the Connected App was created in the Sandbox instance
  • Confirm your Sandbox hasn’t been recently refreshed (resets Connected Apps)

Advanced Configuration

Custom Permissions Profile

For enhanced security, create a dedicated Salesforce user profile for Scout:

  1. In Salesforce Setup, navigate to Profiles
  2. Clone an existing profile (e.g., “Standard User”)
  3. Name it “Scout Integration User”
  4. Configure permissions:
    • Enable API access
    • Grant read/write access only to required objects
    • Remove unnecessary administrative permissions
  5. Create a dedicated user with this profile
  6. Use this user’s credentials when authorizing Scout

Multiple Environment Connections

You can connect both Production and Sandbox simultaneously:

  1. Create separate Connected Apps in each environment
  2. In Scout, add multiple Salesforce workspaces
  3. Select the appropriate environment for each connection
  4. Each workspace maintains its own independent connection

Monitoring and Logging

Monitor your integration usage:

  1. In Salesforce Setup, navigate to System Overview
  2. Check API Usage Last 7 Days to track consumption
  3. Review Connected App usage in AppsConnected Apps
  4. Use Salesforce Event Monitoring (if available) for detailed audit logs

Managing Connected Apps

To update your Connected App:

  • Navigate to Setup → App Manager
  • Find your Connected App and click the dropdown → Edit
  • You can update all settings except the API Name

Required permissions to update:

  • Customize Application AND (Modify All Data OR Manage Connected Apps)
  • To update Profiles, Permission Sets, or SAML attributes, you also need: Manage Profiles and Permission Sets

To rotate Consumer Key and Secret:

  • You need the Allow consumer key and secret rotation permission
  • In the Connected App detail, click Manage Consumer Details
  • Follow prompts to generate new credentials
  • Update Scout with the new credentials before revoking old ones

To delete a Connected App:

  1. Remove all active connections first (disconnect from Scout)
  2. In Salesforce Setup → App Manager, find your app
  3. Click dropdown → Delete
  4. Confirm deletion

Deleting or rotating credentials will break the Scout integration immediately. Always update Scout with new credentials before removing old ones.

Installing Connected Apps

For packaged Connected Apps:

  • Requires: Download AppExchange Packages AND Customize Application AND (Modify All Data OR Manage Connected Apps)
  • Scout uses a custom OAuth flow, not a packaged app, so this typically doesn’t apply

Next Steps

Now that you’ve connected Salesforce to Scout:

  • Create Workflows: Build automated workflows that interact with Salesforce data
  • Configure Agents: Enable AI agents to autonomously query and update Salesforce
  • Set up Collections: Sync Salesforce data to Scout Collections for enhanced AI context
  • Build Copilots: Create customer-facing copilots powered by your Salesforce data

Learn more:

External Resources: