Autotask icon

Autotask

Interact with Kaseya's Autotask PSA REST API to manage companies, tickets, contracts, and more.

Actions1078

Ticket Webhook → Get Many (Advanced)

AI-generated

Summary

Retrieves multiple Ticket Webhook records from Autotask using an advanced JSON filter criteria.

Inputs

  • advancedFilter (required) — A JSON string containing a 'filter' array with Autotask API query criteria. Use Get Field Info to confirm field names and Search Filter Build to construct the filter JSON.
  • returnAll — Whether to return all results or only up to the maxRecords limit.
  • maxRecords — Maximum number of records to return (1-500). Only used when returnAll is false.
  • addPicklistLabels — Whether to automatically add '_label' fields for picklist fields with human-readable values.
  • addReferenceLabels — Whether to automatically add '_label' fields for reference fields with human-readable values.
  • selectColumns — Choose which fields to include in the response. If no fields are selected, all fields will be returned. The ID field is always included regardless of selection.
  • flattenUdfs — Whether to bring user-defined fields up to the top level of each object.

Output shape

A list of items, each containing the selected Ticket Webhook fields (including ID).

When returnAll is false, results are limited to maxRecords (default 10, max 500). Picklist and reference values are labeled automatically unless disabled.

Examples

Example 1: Fetch recent tickets with status 'New'

Set returnAll to false, maxRecords to 20, advancedFilter to [{"fieldName":"TicketStatus","operator":"Equal","value":"New"}], and selectColumns to ['TicketID', 'Title', 'Status'].

Example 2: Get all open tickets regardless of count

Set returnAll to true and advancedFilter to [{"fieldName":"TicketStatus","operator":"NotEqual","value":"Closed"}].

Links

Discussion