FlowmageDocs

List ticket comments

BetaReads dataVersion 2

Reads the comments and notes on a Zendesk ticket.

Settings

SettingWhat it is
ConnectionRequiredThe Zendesk connection the step signs in with.
Ticket idRequiredtext
Order"created_at" or "-created_at"
Also fetch the authorsA comment names its author by id only — this returns the people beside it.
Also fetch images placed in the texttrue/false
Comments per call1 to 100.
Fetch every pageFollows Zendesk's cursor, and refuses past 5,000 comments rather than answering a short list. A ticket holds at most 5,000.
CursorPaste a previous run's Next cursor to read the page after it.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `zendesk`)
ticketIdtext
sort"created_at" or "-created_at", by default "created_at"
includeUserstrue/false, by default false
includeInlineImagestrue/false, by default false
limitnumber, by default 100
returnAlltrue/false, by default false
cursortext

Output

FieldType
commentsarray
commentCountComments in this answernumber
hasMoreMore comments are waiting behind this pageboolean
nextCursorCursor for the next pagestring
usersThe authorsarray
Sample output, and the expression for each field
  • commentCount0
  • comments[]
  • hasMorefalse
  • nextCursor""
  • users[]

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": {
    "connection": "<connection id>",
    "cursor": "",
    "includeInlineImages": false,
    "includeUsers": false,
    "limit": 100,
    "returnAll": false,
    "sort": "created_at",
    "ticketId": "<ticket id>"
  },
  "label": "List ticket comments",
  "type": "zendesk.listComments",
  "version": 2
}

Older versions

A flow that already has this version keeps running it. A new step always gets the newest.

Version 1
SettingWhat it is
ConnectionRequiredThe Zendesk connection the step signs in with.
Ticket idRequiredtext
Order"created_at" or "-created_at"
Also fetch the authorsA comment names its author by id only — this returns the people beside it.
Also fetch images placed in the texttrue/false
Comments per call1 to 100.
Fetch every pageFollows Zendesk's cursor, and refuses past 5,000 comments rather than answering a short list. A ticket holds at most 5,000.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `zendesk`)
ticketIdtext
sort"created_at" or "-created_at", by default "created_at"
includeUserstrue/false, by default false
includeInlineImagestrue/false, by default false
limitnumber, by default 100
returnAlltrue/false, by default false