Overview
Salesforce is a cloud-based CRM platform used by organizations to manage customer relationships, sales pipelines, and business data. It provides teams with tools to track leads, manage contacts, automate workflows, and gain insights across the customer lifecycle.
Common uses for the Alchemer Salesforce integration
- Personalize invites and surveys using contact or record data from Salesforce
- Automatically update Salesforce records when a response is submitted
- Create new Salesforce records from survey data
- Upsert Salesforce records to keep data in sync without duplicates
- Reduce manual data entry and workflow handoff
- Keep Salesforce records synchronized with key survey-driven updates
What can the Alchemer Salesforce integration do?
You will need
- Salesforce OAuth authentication (sign in with your Salesforce account)
- An Alchemer plan that includes integrations with the Integration Manager permission enabled.
- Contact us if you are unsure if your plan includes integrations.
Setup Alchemer Salesforce integration in surveys
Salesforce | Find Contact
You will need:
- Salesforce login credentials
- A survey field containing a value to look up the contact (e.g. email address, last name)
Configure the action
- Open your survey in Survey Builder.
- Select Add New: Action.
- In the Add Action modal, scroll to the Your Integrations section.
- Select Salesforce.
- Select Salesforce | Find Contact.
- Salesforce | Authentication: Select an existing authentication or create a new one.
- Salesforce | Find Contact: Select the survey fields you want to use to find the contact record in Salesforce.
- Note: All selected fields must match for a record to be returned. If multiple records match, the most recently created record is returned.
- Salesforce | Get data back: Select the Salesforce contact fields you want returned (e.g., FirstName, LastName, Email, Phone). These values can personalize survey questions or drive logic.
- Save the action.
Status codes
- 200: A contact was successfully found
- 201: Query succeeded but no contact was found
- 202: Multiple contacts were found (most recently created is used)
- 400: Error returned by Salesforce API or failed to find a matching contact
Salesforce | Update Contact
You will need:
- Salesforce login credentials
- A survey field containing a value to look up the contact you want to update
Configure the action
- Open your survey in Survey Builder.
- Select Add New: Action.
- In the Add Action modal, scroll to the Your Integrations section.
- Select Salesforce.
- Select Salesforce | Update Contact.
- Salesforce | Authentication: Select an existing authentication or create a new one.
- Salesforce | Find Contact: Select the survey fields you want to use to find the contact record in Salesforce.
- Note: All selected fields must match for a record to be returned. If multiple records match, the most recently created record is updated.
- Salesforce | Update Contact: Map Alchemer survey fields to the Salesforce contact fields you want to update.
- Salesforce | Get data back: Select metadata fields (e.g., message, status code) to help debug your integration.
- Save the action.
Status codes
- 200: Contact was successfully updated
- 202: Multiple contacts were found (most recently created is updated)
- 400: The external integration returned an error or contact wasn't found
Salesforce | Get Record
You will need:
- Salesforce login credentials
- A survey field containing a unique identifier for the Salesforce record you want to retrieve
Configure the action
- Open your survey in Survey Builder.
- Select Add New: Action.
- In the Add Action modal, scroll to the Your Integrations section.
- Select Salesforce.
- Select Salesforce | Get Record.
- Salesforce | Authentication: Select an existing authentication or create a new one.
- Salesforce | Domain: Enter your Salesforce domain.
- Salesforce | Object type: Select the Salesforce object type you want to retrieve (e.g., Contact, Lead, Account, Opportunity).
- Salesforce | Find Record: Select the survey fields containing the values you want to use to find the record.
- Salesforce | Get data back: Select the Salesforce fields you want returned. These values can personalize survey questions or drive logic.
- Save the action.
Status codes
- 200: A record was successfully found
- 201: Query succeeded but no record was found
- 202: Multiple records were found (first returned is used)
- 400: Error returned by Salesforce API
Salesforce | Create Record
You will need:
- Salesforce login credentials
- Survey fields containing the data you want to use to create the record
Configure the action
- Open your survey in Survey Builder.
- Select Add New: Action.
- In the Add Action modal, scroll to the Your Integrations section.
- Select Salesforce.
- Select Salesforce | Create Record.
- Salesforce | Authentication: Select an existing authentication or create a new one.
- Salesforce | Domain: Enter your Salesforce domain.
- Salesforce | Object type: Select the Salesforce object type you want to create (e.g., Contact, Lead, Account, Opportunity).
- Salesforce | Create Record: Select the survey fields containing the values you want to use to create the record in Salesforce.
- Salesforce | Get data back: Select metadata fields (e.g., message, status code) to help debug your integration.
- Save the action.
Status codes
- 200: Record was successfully created
- 400: The Salesforce API returned an error
Salesforce | Update Record
You will need:
- Salesforce login credentials
- A survey field containing a unique identifier for the Salesforce record you want to update
Configure the action
- Open your survey in Survey Builder.
- Select Add New: Action.
- In the Add Action modal, scroll to the Your Integrations section.
- Select Salesforce.
- Select Salesforce | Update Record.
- Salesforce | Authentication: Select an existing authentication or create a new one.
- Salesforce | Domain: Enter your Salesforce domain.
- Salesforce | Object type: Select the Salesforce object type you want to update (e.g., Contact, Lead, Account, Opportunity).
- Salesforce | Find Record: Select the survey fields containing the values you want to use to find the record.
- Salesforce | Update Record: Select the survey fields containing the values you want to use to update the record in Salesforce.
- Salesforce | Get data back: Select metadata fields (e.g., message, status code) to help debug your integration.
- Save the action.
Status codes
- 200: Record was successfully updated
- 400: The external integration returned an error
Salesforce | Upsert Record
You will need:
- Salesforce login credentials
- A survey field containing a unique identifier for the Salesforce record
- You can only use email for Contact and Lead lookup, otherwise this integration requires the record ID
Configure the action
- Open your survey in Survey Builder.
- Select Add New: Action.
- In the Add Action modal, scroll to the Your Integrations section.
- Select Salesforce.
- Select Salesforce | Upsert Record.
- Salesforce | Authentication: Select an existing authentication or create a new one.
- Salesforce | Domain: Enter your Salesforce domain.
- Salesforce | Object type: Select the Salesforce object type you want to upsert (e.g., Contact, Lead, Account, Opportunity).
- Salesforce | Find Record: Select the survey field containing the unique identifier used to look up the existing record.
- Salesforce | Upsert Record: Select the survey fields containing the values you want to use to create or update the record in Salesforce.
- Salesforce | Get data back: Select metadata fields (e.g., message, status code) to help debug your integration.
- Save the action.
Status codes
- 200: Record was successfully inserted
- 201: Record was successfully updated
- 400: The external integration returned an error
Testing and Troubleshooting
Testing and Validation
How to test
- Submit a survey response with data that triggers the integration action.
- Confirm the expected record activity in Salesforce (created, updated, retrieved, or upserted).
- Use returned metadata message to validate successful behavior.
How to verify results
- Inspect the affected Salesforce record.
- Ensure all retrieved or updated values match expectations.
Monitoring Integration Activity
Where to find logs
- Go to Results → Individual Responses.
- Select the response you want to inspect.
- Open the Action Log tab.
What logs display
- Success or failure status
- Timestamp
- Input and output values
- Returned status codes from Salesforce
Troubleshooting
Authentication issues
- Incorrect permissions granted in Salesforce
- Note: If using the Tray.io integration, ensure the authenticating Salesforce user has the Approve Uninstalled Connected Apps permission enabled.
- Expired OAuth session
Lookup failures
- Invalid or missing field values used for lookup
- No matching record found
Mapping errors
- Incorrect field formatting (e.g., dates must match Salesforce expected format)
- Unsupported or read-only fields
API errors
- Salesforce validation failures
- Endpoint or object type restrictions
FAQs
What permissions do I need?
Integration Manager in Alchemer and API access in Salesforce. If using Tray.io, the authenticating Salesforce user must also have the Approve Uninstalled Connected Apps permission.
When does the integration run?
In real time when a survey response is submitted.
Can I use multiple Salesforce actions in one survey?
Yes. Actions can run independently or in sequence.
Why isn't my data updating?
Check the Action Log for lookup issues, mapping mismatches, or API errors.
What if I need additional functionality?
Contact Alchemer Support for enhancement requests.