FlowmageDocs

Search tickets

BetaReads dataVersion 2

Finds Freshdesk tickets with a filter query.

Settings

SettingWhat it is
ConnectionRequiredThe Freshdesk connection the step signs in with.
QueryRequiredFreshdesk searches on agent_id, group_id, priority, status, type, tag, due_by, fr_due_by, created_at, updated_at, closed_at and any custom field by name. It understands AND, OR, brackets, :, :> and :<, and the word null. A query may be 512 characters and answers at most 10 pages of 30.
Fetch every pageFreshdesk stops at 10 pages of 30 results, whatever you set below.
Pages at most1 to 10.
CursorPaste a previous run's Next cursor to read the page after it.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `freshdesk`)
querytext
returnAlltrue/false, by default false
maxPagesnumber, by default 10used when `returnAll` is true
cursortext

Output

FieldType
ticketsarray
ticketCountTickets in this answernumber
totalMatches Freshdesk countednumber
hasMoreMore tickets are waiting behind this pageboolean
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • hasMorefalse
  • ticketCount0
  • tickets[]
  • total0

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": "",
    "maxPages": 10,
    "query": "<query>",
    "returnAll": false
  },
  "label": "Search tickets",
  "type": "freshdesk.searchTickets",
  "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 Freshdesk connection the step signs in with.
QueryRequiredFreshdesk searches on agent_id, group_id, priority, status, type, tag, due_by, fr_due_by, created_at, updated_at, closed_at and any custom field by name. It understands AND, OR, brackets, :, :> and :<, and the word null. A query may be 512 characters and answers at most 10 pages of 30.
Fetch every pageFreshdesk stops at 10 pages of 30 results, whatever you set below.
Pages at most1 to 10.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `freshdesk`)
querytext
returnAlltrue/false, by default false
maxPagesnumber, by default 10used when `returnAll` is true