FlowmageDocs

Create ticket

BetaChanges data

Creates a Zendesk ticket with its first comment.

Settings

SettingWhat it is
ConnectionRequiredThe Zendesk connection the step signs in with.
SubjectLeave empty and Zendesk uses the first line of the comment.
First commentRequiredZendesk collapses runs of spaces and newlines in plain text, and silently cuts a comment off past 64 kB.
Comment format"text" or "html"
Visible to the customerOff writes an internal note only agents see.
Requester e-mailZendesk creates the end-user if this address is new.
Requester nametext
Requester idUse instead of the e-mail when you already have the user id.
Assignee idtext
Group idThe List groups node gives you the id.
Organization idtext
Type"" or "problem" or "incident" or "question" or "task"
Priority"" or "urgent" or "high" or "normal" or "low"
Status"new" or "open" or "pending" or "hold" or "solved"
TagsComma-separated.
Custom fieldsZendesk keys a custom field by its numeric id, never by its title — the List ticket fields node gives you the ids and, for drop-downs, the option tags.
External idYour own id for this ticket. Zendesk does not enforce it as unique, so it does not stop a second run creating a second ticket.
Due atOnly a ticket of type Task has a due date.
Ticket form idtext
Brand idtext
E-mail CCsNeeds CCs and followers switched on in Zendesk.
Attachment tokensComma-separated values from the Upload attachment node. One expires 60 minutes after the upload.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `zendesk`)
subjecttext
bodytext
bodyFormat"text" or "html", by default "text"
publictrue/false, by default true
requesterEmailtext
requesterNametextused when `requesterEmail` is not ""
requesterIdtext
assigneeIdtext
groupIdtext
organizationIdtext
type"" or "problem" or "incident" or "question" or "task"
priority"" or "urgent" or "high" or "normal" or "low"
status"new" or "open" or "pending" or "hold" or "solved", by default "new"
tagstext
customFieldsobject of text, by default {}
externalIdtext
dueAttext
ticketFormIdtext
brandIdtext
emailCcstext
uploadTokenstext

Output

FieldType
ticketIdstring
ticketobject
ticketUrlAddress of the ticket in Zendeskstring
requesterIdstring
Sample output, and the expression for each field
  • requesterId"7"
  • ticket
    • id42
    • subject"Printer is jammed"
  • ticketId"42"
  • ticketUrl"https://acme.zendesk.com/agent/tickets/42"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "assigneeId": "",
    "body": "<first comment>",
    "bodyFormat": "text",
    "brandId": "",
    "connection": "<connection id>",
    "customFields": {},
    "dueAt": "",
    "emailCcs": "",
    "externalId": "",
    "groupId": "",
    "organizationId": "",
    "priority": "",
    "public": true,
    "requesterEmail": "",
    "requesterId": "",
    "requesterName": "",
    "status": "new",
    "subject": "",
    "tags": "",
    "ticketFormId": "",
    "type": "",
    "uploadTokens": ""
  },
  "label": "Create ticket",
  "type": "zendesk.createTicket",
  "version": 1
}