The Zendesk for Salesforce integration provides one-way data sync from Salesforce to Zendesk Support. This article describes how to set up two types of data sync:
- Salesforce accounts to Zendesk organizations — Zendesk organizations in Support are automatically created and updated when Salesforce accounts are created or modified.
- Salesforce contacts or leads to Zendesk users — Zendesk users in Support are automatically created and updated when Salesforce contacts or leads are created or modified.
Related articles:
Understanding the data sync process
A data sync is triggered when a mapped field is updated in an existing Salesforce record, or a new record is created. Any unmapped fields that are updated do not trigger the sync.
When a Salesforce record is created or changed, the syncing process determines whether to create a new record or update an existing record in Zendesk Support. This is done by comparing field values based on the defined criteria.
Once a successful match of existing records has been made, or a new record has been created in Support, the Salesforce and Support records are linked. This means that subsequent updates to the record in Salesforce don't use matching criteria but instead update the linked record in Support.
If more than one matching result is found, the sync cannot determine which record needs to be updated. Because this is a background process, the ongoing sync won't update records and logs an unsuccessful sync event.
If a Salesforce user updates a mapped field indirectly through a Salesforce flow, sales process, or Apex trigger, the field may not sync to Zendesk if the user who triggered the indirect update does not have edit permission to the mapped field.
A sync is triggered to Zendesk when records are created or updated to a mapped field using the Salesforce API.
Because data syncing is one-way, any changes applied in Zendesk are not reflected in Salesforce.
Salesforce accounts to Zendesk Organizations sync
The Salesforce account to Zendesk organization sync is a one-for-one sync that uses account name to organization name for matching records by default. However, not all Salesforce implementations adhere to this rule. If you have duplicate account names, you can change this to another unique account field. This might not be a suitable feature if you don't have unique account fields.
This data sync has the following limitations:
- Data sync consumes Salesforce streaming API governor limits. For example, if you have a large amount of data to be synced, this exceeds the governor limit, and data may not sync.
- Salesforce Person accounts are imported as Zendesk Organizations. If you'd prefer a Salesforce Person account to be added as a Zendesk user, you can perform a bulk import of users or use the Create user API with Salesforce-specific information.
Salesforce contacts or leads to Zendesk users sync
The sync from Salesforce contacts or leads to Zendesk users is one-for-one, based on unique email addresses. However, not all Salesforce implementations adhere to these rules, so consider whether this feature suits your needs.
This data sync has the following limitations:
- For security reasons, data sync will not sync a Salesforce contact to a Zendesk user if the Zendesk user is an agent or admin.
- Data sync consumes Salesforce streaming API governor limits. For example, if you have a large amount of data to be synced, this exceeds the governor limit, and data may not sync.
Setting up a data sync
Setting up a data sync requires several tasks in Salesforce and Zendesk Admin Center.
To set up data sync for your integration
- Set up the Zendesk for Salesforce integration.
- Configure Salesforce API settings and permissions for syncing.
- In Admin Center, configure sync settings for Salesforce accounts to Zendesk organizations and Salesforce contacts or leads to Zendesk users.
Configuring your Salesforce API settings and permissions
Before setting up a data sync, some Salesforce APIs settings and permissions must be enabled for data sync to be successful. The information in the following procedures is described for the Salesforce Lightning edition.
To enable the Salesforce API
- On the Salesforce Setup page, select Administration > Users > Profiles.
- Select System Administrator or the authenticated user's profile.
- Click System Permissions and select the API enabled
checkbox.
To set streaming API channel permissions
- On the Salesforce Setup page, select Administration > Users > Profiles.
- Select the user profile of the admin setting up the integration.
- Click Object Settings > Streaming Channels, and under
Object Permissions, select the Read checkbox.
To set PushTopic permissions
- On the Salesforce Setup page in the left sidebar, select Administration > Users > Profiles.
- Select the user profile of the admin setting up the integration.
- Click Object Settings > Push Topic, and click Edit.
- Under Object Permissions, select the Read checkbox, and click
Save.
To enable Streaming API
- On the Salesforce Setup page in the left sidebar, select Platform tools > User Interface > User Interface.
- Under Setup, select the Enable Streaming API checkbox.
Configuring Salesforce accounts to Zendesk Organizations sync
The following procedure explains setting up a sync so Zendesk organizations in Support are automatically created and updated when Salesforce accounts are created or modified.
To configure Salesforce accounts to Zendesk organization sync
- In Admin Center, click
Apps and integrations in the sidebar, then select Integrations > Integrations.
- In Salesforce, click Configure.
- Click the Data sync side tab, and in Accounts to Organizations sync, click Configure.
- Select the Enable syncing checkbox, and configure the settings for which accounts and account fields are synced to Zendesk.
- In Sync filtering, configure conditional filters to define which Salesforce accounts are synced to Zendesk. For more information, see Understanding sync filtering.
- In Matching criteria, set the criteria for matching Salesforce accounts to Zendesk organizations. For more information, see Understanding matching criteria.
- In Field mapping, map which Salesforce account fields you want to populate with the Zendesk organization field. For more information, see Understanding field mapping.
- In Synced organization mapping, you can choose to map the Zendesk
organization to a Salesforce account. Select any standard or custom
Salesforce account field. This one-way sync is useful for displaying a
Zendesk user linked to a Salesforce account. Note: The Salesforce integration only writes the Zendesk ID into the synced organization mapping field on the first successful sync. Any existing data in that field will be overwritten. Subsequent syncs do not populate this field within Salesforce.
- In Zendesk external ID, select the checkbox if you want the external
ID to populate the Zendesk organization external ID field. This can only be
set to the Salesforce Account ID. Note: Any existing external ID values are overridden and cannot be reverted. This may impact other applications that rely on this field. This change is only applied when you click Save.
- Click Save to save your configuration. Confirmation of saved settings is displayed.
Configuring Salesforce contacts or leads to Zendesk users sync
The following procedure explains configuring a sync so Zendesk users in Support are automatically created and updated when Salesforce contacts or leads are created or modified.
To configure Salesforce contacts or leads to Zendesk user sync settings
- In Admin Center, click
Apps and integrations in the sidebar, then select Integrations > Integrations.
- In Salesforce, click Configure.
- Click the Data Sync side tab, and in Contacts/Leads to User sync, click Configure.
- Select the Enable syncing checkbox, and configure the settings for which contacts or leads and associated fields are synced to Zendesk.
- In Sync Type, select if you want Zendesk users to be created based on Salesforce contacts or leads. Note that you can only select one.
- In Sync Filtering, configure conditional filters to choose which Salesforce contacts or leads accounts are synced to Zendesk. For more information, see Understanding sync filtering.
- In Matching criteria, set the criteria for matching Salesforce contacts or leads to Zendesk users. For more information, see Understanding matching criteria.
- In Field mapping, map which Salesforce contact or lead fields you want to populate with Zendesk organization field. For more information, see Understanding field mapping.
- In Synced user mapping, you can choose to map the Zendesk user to a
Salesforce contact or lead. Select any standard or custom Salesforce contact
or lead field. This one-way sync is useful for displaying a Zendesk user
linked to a Salesforce contact or lead.Note: The Salesforce integration only writes the Zendesk user ID into the mapped contact/lead field on the first successful sync. Any existing data in that field will be overwritten. Subsequent syncs do not populate this field within Salesforce.
- In Zendesk external ID, select the checkbox if you want the external
ID to populate the Zendesk user external ID field. This can only be set to
the Salesforce Contact ID. Note: Any existing external ID values are overridden and cannot be reverted. This may impact other applications that rely on this field. This change is only applied when you click Save.
- In General options, select the Send welcome email checkbox to send a welcome email to new users in Support. For more information, see Customizing the welcome email and the account verification email.
- Click Save to save your configuration. Confirmation of saved settings is displayed.
Understanding sync filtering
In the Data Sync > Sync Filtering section, you can filter which Salesforce accounts are synced to Zendesk or choose which Salesforce contacts or leads accounts are synced to Zendesk. You can control the sync by building conditional statements. If no filters are set, all accounts are in scope for syncing.
To create a sync filter condition, specify the field, the operator, and the value:
- Meet ALL of the following conditions: All conditions added to this section must be met to include the Salesforce record in the sync.
- Meet ANY of the following conditions: One or more conditions in this section must be met to include the Salesforce record in the sync.
Sync filtering has the following rules:
- All values are case-sensitive.
- Multiple values in a condition can be separated by a comma with no spaces.
- When using a Salesforce picklist field in the sync filter, the value must be the API name of the picklist options.
- The Account Record Type field in Salesforce is not supported.
- When a checkbox type field is used as a condition, enter a true or
false value.
The following Salesforce fields are not supported for filtering:
- Formula field
- Lookup field
- Long text area field
Understanding matching criteria
In the Data sync > Matching criteria section, the criteria is set for matching Salesforce accounts to Zendesk organizations, or Salesforce contacts or leads to Zendesk users. When a record in Salesforce is created or changed, the syncing process checks whether a new organization or user record in Support should be created, or an existing organization or user record should be updated. This is done by comparing the values set in the matching criteria that you set. When a match is found, the corresponding fields are updated according to your field mapping settings.
The options in the Zendesk field drop-down vary according to the type of field you select in the Salesforce drop-down. Standard and custom fields are supported for matching.
Note:
- Only one matching criterion is supported.
- If more than one matching result is found, the sync won't be successful since it can't determine which record needs to be updated. In this case, ongoing sync won't update records and logs an unsuccessful sync event.
Understanding field mapping
The field mapping sections enable Salesforce fields to be mapped to Zendesk fields. Every Salesforce account, contact, or lead field should be mapped to a standard or custom Zendesk field. Mapped fields are updated during the sync.
The Salesforce data is the "source of truth" for mapped fields. If a mapped Zendesk field contains data upon sync, it is overwritten with the Salesforce data. If you don't want to overwrite data in Zendesk, don't map the field. The Tags, Email, and Phone fields are exceptions. These fields are appended with Salesforce values upon sync. Salesforce email addresses added to Zendesk during sync are added as secondary addresses.
When a multi-picklist Salesforce field is selected for mapping, a Mapped values link is displayed. The link opens a window to map multiple Salesforce fields to Zendesk fields.
In this instance, avoid mapping multiple Salesforce fields to a single field in Zendesk. Otherwise, only the last Salesforce field mapped will be synced.
The following Salesforce fields are not supported for mapping:
- Text area (long)
- Text area (rich)
- Text area (encrypted)
- Lookup field — Salesforce lookup fields cannot be mapped to Zendesk because the lookup fields values are stored in a related Salesforce object
- Record type ID
Salesforce accounts to Zendesk organizations field mapping
In Data Sync > Accounts to Organizations sync, the Field mapping section maps the Salesforce account fields you want to populate with Zendesk organization fields. This controls which field in the Salesforce account record is synced as its related organization name. By default, this is set to Account Name to Organization Name.
The drop-down options in the Zendesk field vary according to the type of field you select in the Salesforce drop-down. The following table shows which Salesforce field types can be mapped to Zendesk field types.
Salesforce field type | Text |
Drop-down |
Decimal |
Checkbox |
Date | Numeric |
ID | ✓ | |||||
String | ✓ | |||||
Phone | ✓ | |||||
Picklist | ✓ | ✓ | ||||
Currency | ✓ | ✓ | ||||
Boolean | ✓ | ✓ | ||||
Checkbox | ✓ | |||||
Date/Time | ✓ | ✓ | ||||
Number | ✓ | ✓ | ||||
Double | ✓ | ✓ | ||||
Date | ✓ | ✓ | ||||
Multi picklist |
✓ | |||||
✓ |
Salesforce contacts or leads to Zendesk users field mapping
In Data Sync > Contacts/Leads to users sync, the Field mapping section maps Salesforce contact or lead fields you want to populate with Zendesk user fields. This identifies which field in the Salesforce contact or lead account record is synced as its related user. By default, field mapping is set to Email to Email.
The drop-down options in the Zendesk field vary according to the type of field you select in the Salesforce drop-down. The following table shows which Salesforce field types can be mapped to Zendesk field types.
Salesforce field type | Text |
Drop-down |
Decimal |
Checkbox |
Date | Numeric |
ID | ✓ | |||||
String | ✓ | |||||
Phone | ✓ | |||||
Picklist | ✓ | ✓ | ||||
Currency | ✓ | ✓ | ||||
Boolean | ✓ | ✓ | ||||
Checkbox | ✓ | |||||
Date/Time | ✓ | ✓ | ||||
Number | ✓ | ✓ | ||||
Double | ✓ | ✓ | ||||
Date | ✓ | ✓ | ||||
Multi picklist |
✓ | |||||
✓ |
Checking your data sync setup
Use the following checklist to help check your data sync is setup correctly:
- Ensure you have the correct Salesforce API settings requirements for the integration.
- Confirm you have only connected one Salesforce account to one Zendesk account.
- Sync filter: Confirm you aren't using unsupported Saleforce fields such as Formula Field and Lookup field.
- Sync filter: Confirm you're using the correct syntax in the sync filter values. These are case-sensitive and must exactly match the Salesforce field value. If you're using a Salesforce picklist field for filtering, the value is the API name.
- Sync field mapping: Check the field mapping includes Name to Name. This is mandatory because organizations can't be created in Zendesk without a name.
- When testing the sync, did you make updates to the Salesforce fields that are mapped to Zendesk? Sync is only triggered when a mapped field is updated.
- If you have Validate user phone numbers enabled on the End users page in Admin Center, Zendesk verifies that all phone numbers synced from Salesforce use a valid international E.164 format. To avoid phone number validation errors in Zendesk Support, format phone numbers using the E.164 format in Salesforce, which includes the plus sign (+). For more information, see Why do phone numbers synced from Salesforce lose their country code?
71 Comments
HeyO Jason Wong
If a contact in SFDC belongs to a given account and you're syncing accounts from SFDC into Zendesk organizations, that relationship should be created in Zendesk when the contact syncs after the account sync has taken place.
There is some good documentation about account relationship syncing within https://support.zendesk.com/hc/en-us/articles/4408832217882#topic_fbc_clr_3tb
Please contact support if there are questions not covered by those articles or if you're seeing behavior that disagrees with what we've documented.
Can I set a matching criteria from Salesforce based on the domain name of the organization in Zendesk? The interface allows me to map this field, but I'm not seeing it as an option in the matching criteria?
HeyO Daniel Clymore-Greene
It's not currently possible to match based on the domain name field, as it's not something that's indexed for the search (on which that matching relies). It should be possible to sync a single SFDC field into multiple fields within Zendesk. As such, it should be possible to push it into a custom Organization field and then use that field for matching instead.
Thanks Dwight Bussman. Is it possible to push the "Domains" name field that get's automatically added to orgs, into a custom Org field, and then use that custom field to match to Salesforce? I know I can have Salesforce push the field to Zendesk once matched, but the specific ask here is to find a way to utilize the domain name that comes in via email address and is automatically added to the ticket and respective org. In this way, ZD orgs would automatically be created and updated with the SF data sync without us having to manually create the ZD org every time a new customer inquires to ZD Support.
heyO Daniel Clymore-Greene
The issue here is that there are contradictory goals that cannot both be fulfilled by the same field:
- Is responsible for users being automatically added to an org when their users are created in zendesk (when they reach out to Zendesk for the first time)
- Cannot be used for matching as it is not indexed for search
- does nothing in terms of users being added to orgs
- Can be used for sync-matching for the integration since custom org-fields are indexed for search
You should be able to set both fields (the system field as well as a custom field) from a single SFDC field as shown here:

Please feel free to contact our support team if you're having difficulties syncing into multiple fields as shown above.
Dwight Bussman Understood, but what I'm wondering is if I can set the "2.Custom Org Field" from the "1.Default System Domains" field. Is that possible?
Hi,
I can't seem to get the integration to update the user's Zendesk organization when their related contact account is changed in Salesforce. Is this because the integration can't use lookup fields? Is there a workaround for this as having a Zendesk user under a different org than their related Salesforce account will become a major issue for us.
Hello everyone!
We appreciate your feedback on this topic and would love to hear more directly from you live. Please join us on September 12th at 5PM CDT for our PM Roundtable on our Salesforce integration.
It’ll be an open discussion on what is and isn’t working for you on with the Salesforce integration built by Zendesk. We're collecting feedback at the moment to help inform a new roadmap of improvements across the integration. So please bring those questions, concerns and use cases because we want to hear from you!
The link to register can be found here, we’d love to see you all there.
Cheers,
David
Hi Everyone,
Following up on this thread after our PM Roundtable on the Salesforce Integration. Just wanted to stay another big thank you for providing feedback in this area.
In case you missed the PM Roundtable session, please find the deck, recording, and follow up article. Thank you again for your feedback!
Cheers,
David
Please sign in to leave a comment.