Salesforce Setup
Create a Salesforce Connected App to access contacts, leads, opportunities, and more through Fp Switchboard.
Prerequisites
Section titled “Prerequisites”- Salesforce account with admin access
- Ability to create Connected Apps in Setup
Setup Steps
Section titled “Setup Steps”-
Access Salesforce Setup
Go to Setup > App Manager (search “App Manager” in Quick Find).
-
Create Connected App
Click “New Connected App” and fill in:
- Connected App Name: Fp Switchboard
- API Name: Fp_Switchboard
- Contact Email: Your admin email
-
Enable OAuth Settings
Check “Enable OAuth Settings” and configure:
- Callback URL:
https://api.switchboard.fpdigital.ai/oauth/salesforce/callback - Selected OAuth Scopes:
api,refresh_token,offline_access
- Callback URL:
-
Save and Wait
Save the Connected App. It may take 2-10 minutes for changes to propagate.
-
Get Consumer Credentials
After saving, click “Manage Consumer Details” to view the Consumer Key (Client ID) and Consumer Secret.
Environment Variables
Section titled “Environment Variables”npx wrangler secret put SALESFORCE_CLIENT_IDnpx wrangler secret put SALESFORCE_CLIENT_SECRET| Variable | Description |
|---|---|
SALESFORCE_CLIENT_ID | Consumer Key from Connected App |
SALESFORCE_CLIENT_SECRET | Consumer Secret from Connected App |
Redirect URI
Section titled “Redirect URI”https://api.switchboard.fpdigital.ai/oauth/salesforce/callbackCommon Issues
Section titled “Common Issues”- Admin approval required: In production orgs, admins may need to approve the Connected App before users can authenticate.
- IP restrictions: Some orgs restrict API access by IP. You may need to allowlist Cloudflare IPs or disable IP restrictions for the Connected App.
- Sandbox vs Production: Use
test.salesforce.comfor sandboxes andlogin.salesforce.comfor production. Switchboard detects this automatically.
Testing
Section titled “Testing”- Connect from the Switchboard Dashboard
- Authorize with your Salesforce credentials
- Click Test Connection to verify
- Try: “List my Salesforce contacts” or “Search opportunities”