| CARVIEW |
- White Papers
- A Guide to Multi-Channel Customer Support
- An Inside Look Into How Groupon Does Support
- Guide to Customizing and Integrating Your Zendesk
- How To Support Your Customers with Twitter
- Saas Help Desk Software: Your 6 Requirements
- Selecting Help Desk Software for the Enterprise
- Zendesk for Salesforce: An Integration Guide
- Webinars
- Why Zendesk?
- Batchbook + Zendesk Webinar Integration
- Capture the Definitive Business Metric: Customer Satisfaction
- Customer Support Made Easy: Why Zendesk?
- CSS in Zendesk
- Customizing Zendesk to Work for You
- Get Satisfaction + Zendesk Integration Webinar
- Getting Started with your Zendesk
- Getting Started: Intermediate
- GoodData for Zendesk Webinar
- JIRA + Zendesk Integration Webinar
- LiquidPlanner + Zendesk Integration Webinar
- LogMeIn Rescue for Zendesk – Remote Support Solution Webinar
- New Release of GoodData for Zendesk
- Salesforce + Zendesk Integration Webinar
- SurveyGizmo + Zendesk Integration Webinar
- Sweeten your help desk with an integration to SugarCRM
- Webinar: Tips and Tricks for Getting the Most Out of Zendesk
- Zendesk for iPad
- What’s New?
- Zendesk for Seesmic Desktop
- Zendesk for Twitter 2.0
- Zendesk New Community Features Webinar
- Zenfession: BigTent
- Zenfession: Postbox
- Ifbyphone for Zendesk Integration
- Customer Stories
- API
- Documentation
- Partners
- Newsletter
Mail API
Rest API
- Introduction
- Organizations
- Groups
- Tickets
- Attachments
- Users
- Tags
- Forums
- Entries
- Search
- Ticket Fields
- Macros
Widgets
Remote Authentication
Targets
Widgets: Introduction
Widgets are html fragments that can be embedded directly on any page of your help desk. Use widgets to integrate external data in your help desk interface. You can furthermore access all of the data in your help desk via JSON, mash-up with external data and even replace existing elements in the help desk layout.
For advanced usage, see the Javascript Resource API
TEXT PLACEHOLDERS
You can use text placeholder in your widgets to include information about the selected objects in your help desk pages. If you wanted to insert the name of the user who is logged in to the system you could insert{{current_user.name}}.
Examples
HELLO USER
Hi {{current_user.name}}
See the Widget Text Placeholders Documentation for more info on the available placeholders.
ACCESSING THE REST API
You can access all data in your help desk directly from the widget via JSON. This example lists the number of users in your help desk, and displays the name of the first user. The data is shown on the page in the inner HTML of the div with ID “active-views”. You can place the content of your widget in any div with an ID!
WIDGET ACCESS TO ALL DATA IN YOUR HELP DESK VIA JSON
<script>
new Ajax.Request('/users.json', {
method:'get',
asynchronous: true,
onSuccess: function(transport){
var obj = transport.responseText.evalJSON();
$('active-views').innerHTML = '<p>' + obj.length + ' users in your help desk.'
+ ' First user is '
+ obj[0].name + '</p>'
}
});
</script>
INTEGRATING DATA FROM AND TO YOUR ENTERPRISE
If you have pre-populated or updated the user database via REST, you can utilize the attribute{{current_user.external_id}}
for the internal user ID for your enterprise, thus using javascript calls in the widget to fetch and present additional data from your repositories – e.g. license or asset data for the current user.
INTEGRATING USER DATA FROM AND TO YOUR ENTERPRISE
<script type="text/javascript"
src="https://database.your_enterprise.com/get_user_assets.php?id={{current_user.external_id}}">
</script>
This example calls an internal method at your enterprise. The method returns javascript listing users assets. This could also be done with an iframe returning plain HTML from your enterprise.