Workflow blocks
Get User Tickets
Get ticket history for a customer
zendesk/get-user-tickets — Get ticket history for a customer.
Where it appears
The Get User Tickets block lives in the Integrations group of the Workflow Builder. Connect the Zendesk integration before adding it.
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
userId | text (supports references) | Yes | — | Numeric Zendesk user ID whose ticket history to fetch. Use a literal number or <StepName.field> to reference an ID from a previous step. |
limit | number | No | 25 | Maximum number of the user's tickets to return. Defaults to 25. |
Inputs and outputs
Inputs are the configurable fields above. The block produces these outputs:
Outputs
Reference an output downstream with <Get User Tickets.field>.
| Name | Type | Description |
|---|---|---|
success | boolean | Success status |
tickets | array | Array of user tickets |
count | number | Number of tickets |
error | string | Error message if failed |
Example
A minimal configuration for this block:
{
"type": "zendesk/get-user-tickets",
"config": {
"userId": "<PreviousStep.field>",
"limit": 25
}
}Limits and failure modes
- Requires a connected Zendesk integration. Calls fail if that integration is disconnected or its authorization has expired.
- Required field (
userId) must be set, or the block fails validation before it runs. - On failure the
erroroutput is populated; downstream blocks that reference other outputs may not receive values.