Salesforce Integration
Connect Salesforce to sync contacts, trigger sequences from Closed Won events, and push scores back
Use Salesforce integration to import CRM contacts, optionally auto-trigger sequences when opportunities move to Closed Won, and push survey scores back into Salesforce fields.
Core Capabilities
- OAuth connection with PKCE
- Contact sync from Salesforce into demeterrr
- Manual queue triggering for synced contacts
- Auto-triggering on Closed Won webhook events
- Score pushback field mapping (NPS, CSAT, Last Survey Date)
Connect Salesforce
- Go to Settings > Integrations.
- Click Connect Salesforce.
- Complete OAuth in Salesforce.
- Return to demeterrr and confirm Connected status.
After connection, open Configure on the Salesforce card to tune behavior.
Configure Trigger Modes
In /settings/integrations/salesforce, set:
manual: Trigger only from the manual queueauto: Trigger from Closed Won webhook eventsboth: Enable auto triggers and manual queue
When auto or both is enabled, choose the sequence that should run.
Manual Queue Workflow
The queue lists Salesforce-linked contacts that have not been triggered yet.
- Select one or more contacts.
- Select a sequence.
- Click Trigger.
The system creates sendings and dispatches them through the sequence runtime.
Score Pushback Field Mapping
You can map:
- NPS score field (default
NPS_Score__c) - CSAT score field (default
CSAT_Score__c) - Last survey date field (default
Last_Survey_Date__c)
Use Test Fields before saving to confirm the custom fields exist in your Salesforce org.
Webhook Security
For auto-trigger mode, webhook auth supports:
- Organization-specific webhook secret stored in Salesforce config
- Global
SALESFORCE_WEBHOOK_SECRETenvironment fallback
Send the secret as:
- Header:
x-salesforce-webhook-secret(orx-webhook-secret) - Query param:
token(orsecret)
Manual Sync and Disconnect
From the Salesforce card in Integrations:
- Sync Now triggers contact sync
- Disconnect stops sync and trigger behavior
Troubleshooting
OAuth setup error
Verify these environment variables:
SALESFORCE_CLIENT_IDSALESFORCE_CLIENT_SECRET
Callback state errors
If redirected with a Salesforce state error, reconnect with a fresh session and avoid stale tabs.
Webhook events are ignored
Check:
- Trigger mode is
autoorboth - Sequence is selected in Salesforce config
- Webhook secret is correctly set and passed
// Related articles
HubSpot Integration
Connect HubSpot to sync contacts and push NPS and CSAT data into your CRM
QuickBooks Integration
Connect QuickBooks Online to import customers and support invoice-paid automation triggers
Creating Your First Sequence
Build and activate an automated multi-step sequence for survey and follow-up workflows
API-Triggered Sequences
Enroll contacts into sequences programmatically using the API
Was this article helpful?
Let us know if you found this article helpful or if you need more information.
Join hundreds of businesses already using demeterrr to collect feedback, boost reviews, and grow faster.
Start Your Trial