Skip to main content

Salesforce Connector

Connect to Salesforce to index CRM data including accounts, contacts, opportunities, and custom objects.

Overview

The Salesforce connector allows you to:

  • Index standard and custom objects
  • Query with SOQL filters
  • Sync sharing permissions
  • Access Salesforce Knowledge articles

Prerequisites

  • Salesforce account (any edition)
  • API access enabled
  • OAuth app or user credentials

Authentication

  1. Click Connect with Salesforce
  2. Log in to your Salesforce org
  3. Authorize ZenSearch app access

Username/Password Flow

  1. Enter Salesforce username
  2. Enter password + security token
  3. Specify org type (production/sandbox)

Configuration

SettingDescription
EnvironmentProduction or Sandbox
ObjectsStandard/custom objects to sync
SOQL FilterQuery filter for records

Setup Steps

  1. Add Connector: Knowledge → Add Data Source → Salesforce
  2. Authenticate: OAuth or username/password
  3. Select Objects: Choose objects to index
  4. Set Filters: Optional SOQL conditions
  5. Test & Create: Verify and save

Objects Indexed

ObjectContent
AccountsCompany information
ContactsPeople records
OpportunitiesDeal information
CasesSupport tickets
KnowledgeHelp articles
Custom ObjectsYour custom data

SOQL Filtering

Filter records with SOQL:

Type = 'Customer' AND Industry != null
CreatedDate >= LAST_N_DAYS:90
RecordType.Name = 'Enterprise'

Permission Sync

Salesforce sharing rules are respected:

  • Organization-wide defaults
  • Role hierarchy
  • Sharing rules
  • Manual sharing

Best Practices

  1. Start with key objects (Accounts, Opportunities)
  2. Use SOQL filters to limit scope
  3. Include Knowledge articles if available
  4. Enable permission sync for security

Troubleshooting

Login failed: Check credentials and security token

API limits: Monitor daily API usage in Salesforce

Missing records: Verify SOQL filter and sharing rules