You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/catalog/zendesk/index.md
+18-15Lines changed: 18 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ id: 54521fdc25e721e32a72ef06
15
15
2. Search for "Zendesk" in the Catalog, select it, and choose which of your sources to connect the destination to.
16
16
3. There are two ways to authenticate your Zendesk account with Segment:
17
17
* Use the standard email and password you use to Sign In to your Zendesk account. In the Zendesk settings, add your email in the **Email** setting and your password in the **Password** setting.
18
-
* Use Zendesk OAuth with a unique token. Get the corresponding token from your Zendesk account: **Settings > Channels > API** and under the Settings Tab choose the corresponding token from the "Active API Tokens" list. In the Zendesk settings, add your `email/token` in the **Email** setting (i.e.`[email protected]/token` - use the actual word token in your email address) and add the actual token in the **Password** setting.
18
+
* Use Zendesk OAuth with a unique token. Get the corresponding token from your Zendesk account: **Settings > Channels > API** and under the Settings Tab choose the corresponding token from the "Active API Tokens" list. In the Zendesk settings, add your `email/token` in the **Email** setting (for example,`[email protected]/token` - use the actual word token in your email address) and add the actual token in the **Password** setting.
19
19
4. Add your Zendesk subdomain in the **Subdomain** setting (not including `.zendesk.com`).
When you call `identify` we will insert or update a user record in Zendesk. We'll use the user email in `traits.email` to match user records in Zendesk. If there are multiple users matching the email, then no updates are submitted. Note that you must provide a trait for either `name` or `first_name` and `last_name` in order for the `identify` call to send to Zendesk. If you provide a `name`, we will parse this into the `first_name` and `last_name` fields.
34
+
When you call `identify`, Segment inserts or updates a user record in Zendesk and uses the user email in `traits.email` to match user records in Zendesk. If there are multiple users matching the email, then no updates are submitted. Note that you must provide a trait for either `name` or `first_name` and `last_name` in order for the `identify` call to send to Zendesk. If you provide a `name`, Segment parses this into the `first_name` and `last_name` fields.
35
35
36
36
Here's an example:
37
37
@@ -61,7 +61,7 @@ Here's an example:
61
61
}
62
62
```
63
63
64
-
By default, Users in Zendesk have many standard attributes associated with a single User record. Segment, at this time, is mapping to a subset of these. If you attempt to send data to a Zendesk attribute that we have not yet mapped, it will create a custom field for this (it will not update the existing attribute).
64
+
By default, Users in Zendesk have many standard attributes associated with a single User record. Segment, at this time, is mapping to a subset of these. If you attempt to send data to a Zendesk attribute that are not yet mapped, it will create a custom field for this (it will not update the existing attribute).
65
65
66
66
Here are the Zendesk User Attributes Segment maps to and their syntax.
67
67
@@ -79,7 +79,7 @@ Here are the Zendesk User Attributes Segment maps to and their syntax.
79
79
80
80
### Removing Users from a Zendesk Organization Membership on Segment Identify
81
81
82
-
To remove a user from an organization, navigate to your Zendesk destination settings and click **Enable Removing Users from Organizations** . When this setting is enabled, Segment detects when you pass an identify events with `traits.company.id` where `traits.company.remove: true`, and then sends a request to the Zenedesk API to remove the user from the organization. If you enable the setting in your Zendesk destination settings but do not pass the correct trait values, Segment defaults to the standard `identify` behavior, which creates or updates a user.
82
+
To remove a user from an organization, navigate to your Zendesk destination settings and click **Enable Removing Users from Organizations** . When this setting is enabled, Segment detects when you pass an identify events with `traits.company.id` where `traits.company.remove: true`, and then sends a request to the Zendesk API to remove the user from the organization. If you enable the setting in your Zendesk destination settings but do not pass the correct trait values, Segment defaults to the standard `identify` behavior, which creates or updates a user.
83
83
84
84
Here's an example:
85
85
```js
@@ -105,11 +105,11 @@ Here's an example:
105
105
106
106
### Zendesk Verification Email at User Creation
107
107
108
-
To limit identified users from receiving a verification email from Zendesk, simply enable the **"Create Users as Verified"** option in the Zendesk destination settings. We will send`verified` as either true or false for each request based on this setting (you cannot overwrite this on a per-request basis).
108
+
To limit identified users from receiving a verification email from Zendesk, simply enable the **"Create Users as Verified"** option in the Zendesk destination settings. Segment sends`verified` as either true or false for each request based on this setting (you cannot overwrite this on a per-request basis).
109
109
110
110
### Zendesk Custom User Fields
111
111
112
-
You may map to custom user fields within Zendesk by passing your custom field key-value pair as a trait in the Identify call. When passing traits within the identify event, Segment will first try and map the trait to a known, existing field in Zendesk - either the canned standard fields described above or to a custom field (user_fields). We format the field name from either camelCaseFormat or snake_case_format into snake_case_format. If you're finding that your custom fields are not populating in Zendesk as you would expect check the name formatting with this in mind.
112
+
You may map to custom user fields within Zendesk by passing your custom field key-value pair as a trait in the Identify call. When passing traits within the identify event, Segment will first try and map the trait to a known, existing field in Zendesk - either the canned standard fields described above or to a custom field (user_fields). Segment formats the field name from either camelCaseFormat or snake_case_format into snake_case_format. If you're finding that your custom fields are not populating in Zendesk as you would expect check the name formatting with this in mind.
**Important:** You must have a Zendesk [Sunshine plan](https://www.zendesk.com/pricing/?variant=a#platform) to make track calls.
125
+
> info ""
126
+
> You must have a Zendesk [Sunshine plan](https://www.zendesk.com/pricing/?variant=a#platform) to make track calls.
126
127
127
128
When you make a Track call, Segment sends data about the user's activity to Zendesk.
128
129
129
-
We will only send `track` events when the following two conditions are met:
130
+
Segment will only send `track` events when the following two conditions are met:
130
131
131
132
1. The call is listed in the "Events" setting.
132
133
2. A `userId` is included.
133
-
-**Note:** If the `userId` doesn't match any existing users in Zendesk, we will return an error.
134
+
-**Note:** If the `userId` doesn't match any existing users in Zendesk, the destination returns an error.
134
135
135
136
**Mapping Users to an Email**: To map a Segment track event to a Zendesk Sunshine event by email, add the user's email address in the Track call as `properties.email`. This allows Zendesk to tie the event to the user. If there is no `properties.email`, Segment sends the `userId` as `external_id`. If the email is provided in the track call, a javascript call may look like the example below.
> Track calls to Zendesk must reference a user identifier of less than 61 characters. While you may create a user with an identifier of greater than 60 characters, track calls that reference that user return a 400 error. This is due to a limitation in the Zendesk Sunshine API.
147
149
## Group
148
150
149
151
If you're not familiar with the Segment Specs, take a look to understand what the [Group method](/docs/connections/spec/group/) does. An example call would look like:
**Important:** To make group calls, you _must_ be an Administrator in Zendesk.
163
+
> info ""
164
+
> To make group calls, you _must_ be an Administrator in Zendesk.
162
165
163
-
When you call `group`we will insert or update an organization in Zendesk. We'll use the `groupId` you include in the call to match organization records in Zendesk. If there are multiple organizations matching the name, then no updates are submitted.
166
+
When you call `group`Segment inserts or update an organization in Zendesk and uses the `groupId` you include in the call to match organization records in Zendesk. If there are multiple organizations matching the name, then no updates are submitted.
164
167
165
168
Here's an example:
166
169
@@ -188,9 +191,9 @@ Here's an example:
188
191
}
189
192
```
190
193
191
-
Every time you call group, we will also link the organization to the user making the request.
194
+
Every time you call group, Segment links the organization to the user making the request.
192
195
193
-
By default, Organizations in Zendesk have many standard attributes associated with a single Organization record. Segment, at this time, is mapping to a subset of these. If you attempt to send data to a Zendesk attribute that we have not yet mapped, it will create a custom field for this (it will not update the existing attribute).
196
+
By default, Organizations in Zendesk have many standard attributes associated with a single Organization record. Segment, at this time, is mapping to a subset of these. If you attempt to send data to a Zendesk attribute that are not yet mapped, it will create a custom field for this (it will not update the existing attribute).
194
197
195
198
Here are the Zendesk Organization Attributes Segment maps to and their syntax.
196
199
@@ -206,4 +209,4 @@ Here are the Zendesk Organization Attributes Segment maps to and their syntax.
206
209
207
210
### Zendesk Custom Organization Fields
208
211
209
-
You may map to custom organization fields within Zendesk by passing your custom field key-value pair as a trait in the Group call. When passing traits within the group event, Segment will first try and map the trait to a known, existing field in Zendesk - either the canned standard fields described above or to a custom field (organization_fields). We format the field name from either camelCaseFormat or snake_case_format into snake_case_format. If you're finding that your custom fields are not populating in Zendesk as you would expect check the name formatting with this in mind.
212
+
You may map to custom organization fields within Zendesk by passing your custom field key-value pair as a trait in the Group call. When passing traits within the group event, Segment will first try and map the trait to a known, existing field in Zendesk - either the canned standard fields described above or to a custom field (organization_fields). Segment formats the field name from either camelCaseFormat or snake_case_format into snake_case_format. If you're finding that your custom fields are not populating in Zendesk as you would expect check the name formatting with this in mind.
0 commit comments