You can enable Zendesk to send all ticket information to Salesforce using a target. This is useful for including Zendesk tickets in support analytics generated through the Salesforce reporting module.
If you want to see Zendesk ticket information without sending the ticket information into Salesforce, you can add a Visualforce page with a list of tickets. For information, see Adding ticket view to your Salesforce Account, Contact, Lead, and Opportunity layouts.
To read about other Zendesk for Salesforce features, see Choosing Zendesk for Salesforce features.
For links to all of our Salesforce documentation, see Salesforce integration resources.
Setting the matching criteria for ticket requester and organization
When Zendesk sends ticket information to Salesforce, the app attempts to match the ticket’s requester and organization with existing Salesforce records (Organization → Account, User → Contact/Lead). You may want to use the auto-matching criteria set for bulk and ongoing sync.
To enable auto-matching for ticket sending
- Click the Zendesk tab, and in the section Ticket association to Salesforce records, click to select Use auto-matching criteria for searching Salesforce records.
This ensures that both Lead and Contact records in Salesforce will be searched for a matching requester in Zendesk. Users can set up to three criteria for searching (OR logical condition will be used when more than one criteria is set). If you do not check this option, the default criteria will be used:
Organization Name (in Zendesk) will match with Account Name (in Salesforce)
Requester Email (in Zendesk) will match with Contact/Lead Email (in Salesforce)
- If no existing record is found for the match, you may opt to create new records for the ticket’s requester and organization. To do this, click to select Create Contacts or Leads and Accounts.
- Next, use the Create requester as drop-down to choose whether to create the Requester as Contact or Lead:
- Created Contact records can be associated to a default Account by setting the Default Account setting:
All changes are automatically saved.
Editing your target and trigger in Zendesk
When you installed the Salesforce app in Zendesk, Zendesk automatically created a Salesforce target that you will use to send information to Salesforce.
Zendesk also automatically created a trigger named Create a record in Salesforce when ticket is solved in your Zendesk. As the name implies, this trigger creates a new Salesforce Zendesk ticket whenever a ticket is solved.
To modify your Salesforce target
- In Zendesk, click the Admin icon () in the sidebar, then select Settings > Extensions.
- Under the Targets tab, locate the Salesforce target extension, and click Edit.
- Use the drop-down menu to select Send full ticket details as a custom object.
- Click Submit.
- In Zendesk, click the Admin icon () in the sidebar, then select Business Rules > Triggers.
- Find the new trigger, Create a record in Salesforce when ticket is solved, and click the trigger name to edit it.
- Modify the conditions of this trigger as needed, then click Save.
Now when you solve a ticket, a Salesforce Zendesk ticket is created in your Salesforce organization.
Customizing the Zendesk ticket in Salesforce
- Zendesk Ticket ID
- Organization name
- Date/Time created
- Date/Time update
- Date/Time solved
- Date/Time initially assigned
- Resolution time (calendar & business)
- Requester wait time (calendar & business)
- Agent wait time (calendar & business)
- Hold time (calendar & business)
- Reply time (calendar & business)
- Form id
The Salesforce target also sends all data from custom fields into Salesforce. To take advantage of this feature, you need to expose custom data on the Zendesk Ticket option by completing some steps for each custom field.
- In Salesforce, go to the Administration Setup page.
- In the left panel, under Build, select Create > Objects.
- Click the Zendesk Ticket object (not Edit).
- In the Custom Fields & Relationships section, click New.
- Select a Data Type for your new field, then click Next.
In most cases, Text, Text Area, or Number is appropriate. For Zendesk drop-down fields, a Text field is sufficient. Only the selected value will be synced, not all the options in the list.
- Enter a Field Label.
Matching the Field Label to the Zendesk Custom Field Name is preferred, but not required.
- Complete the other mandatory fields, then click Next.
- Click Next again, then click Save.
- Click the Zendesk tab in the Zendesk for Salesforce app.
- In the Ticket Sending to Salesforce section, click Get Custom Ticket Fields.
A list of custom fields from your Zendesk account appears. Note: You must have already created custom fields in Zendesk.
- Deselect the Create Contacts and Accounts in Salesforce checkbox if you do not want to create a new Contact or Account in Salesforce when no match is found for the ticket's requester or organization.
By default, when Zendesk sends ticket information to Salesforce, if an exact email match is not found between the ticket requester and a Contact (not a lead) a new Contact is created in Salesforce. Likewise, if an exact email match is not found between the organization and an Account, a new Account is created in Salesforce.
- If you opt to create new Contacts for unmatched ticket requesters, you can enter an existing Account as the Default Account for new Contacts if no organization is present in Zendesk. You can also click the Account lookup icon to set the default Account.
Setting a default Account will prevent orphaned Accounts from being created.
- Map your custom Zendesk field to the new field you created on the Salesforce Zendesk Ticket object.
- Click Save.
When a ticket is sent into Salesforce via the target in Zendesk, your custom field data will automatically populate according to these mappings.
Editing from the Zendesk Ticket object
While tickets are synced in either direction between Zendesk and Salesforce, the Zendesk Ticket objects are only synced one-way: from Zendesk to Salesforce. Making changes directly to the Zendesk Ticket object will not update information in Zendesk.
You can, however, access and edit the ticket from Salesforce by clicking "edit ticket details." Your changes will be saved directly in Zendesk.
You must be an Agent or a Light Agent in Zendesk to edit tickets. Light Agents are limited to adding private comments in tickets.
- In Salesforce, open a Zendesk Ticket record, then click Personal Settings.
- In the Authentication section, enter your Zendesk login and password, then click Save.
Note: You must be an Agent or a Light Agent in Zendesk to edit tickets. Light Agents are limited to adding private comments in tickets.
- In the Zendesk Ticket record, click Edit Ticket Details.
- Click Edit.
Alternatively, click New if you want to create a new ticket in Zendesk.Note: You cannot edit Closed tickets.
- Make any changes you'd like, then click Save.
You are redirected to the Zendesk Ticket.