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.
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), you can automatically create a new Contact in Salesforce, if you want. If you opt to create new Contacts for unmatched ticket requesters, you can also set a default Account for those new Contacts.
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.
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. You need to edit the target to send full ticket details.
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.
- In Zendesk, click the Admin icon () in the sidebar, then select Extensions in the Settings section.
Zendesk Classic: Select Settings > Extensions.
- Click the Target tab.
- Find the Salesforce target, then click Edit to modify the target.
- For the Ticket information option, select Send full ticket details as a custom object.
- Select Update target, then click Submit.
- In Zendesk, click the Admin icon () in the sidebar, then select Triggers & mail notifications in the Settings section.
Zendesk Classic: Select Manage > Triggers & mail notifications.
- Find the new trigger, Create a record in Salesforce when ticket is solved, then click Edit to modify the trigger's conditions.
- Modify the conditions of this trigger as needed, then click Update trigger.
send full ticket details
- Click Activate to enable the trigger.
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 App Setup, 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 Mapping 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
The Zendesk Ticket object is 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.