Autotask icon

Autotask

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

Actions1078

Ticket Category → Get Many (Advanced)

AI-generated

Summary

Retrieve multiple Ticket Category records from Autotask using advanced filtering criteria written as a JSON query. The 'Max Records' value can be set either via the parameter or directly in the advanced filter JSON. If specified in the filter, 'MaxRecords' must be an integer between 1 and 500; values above 500 will cause an API error.

Inputs

  • Advanced Filter (required) — A JSON string containing a "filter" array that specifies Autotask API query criteria to refine the search.
  • Get All — Boolean to determine if all matching records should be returned or limited to a set number.
  • Max Records — Specifies the maximum number of Ticket Category records to return when 'Get All' is false, ranging from 1 to 500. Alternatively, 'MaxRecords' can be set directly in the advanced filter JSON, but must be an integer between 1 and 500; values above 500 cause an API error.
  • Add Picklist Labels — If enabled, adds additional fields with human-readable labels for picklist fields in the results.
  • Add Reference Labels — If enabled, adds additional fields with human-readable labels for reference fields in the results.
  • Select Columns Names or IDs. — Optionally provide specific field names or IDs to include in the response. If none are selected, all fields are returned. The ID field is always included.
  • Flatten User-Defined Fields — If enabled, user-defined fields (UDFs) are promoted to top-level properties in the response objects rather than nested inside userDefinedFields array.

Output shape

a list of Ticket Category records matching the advanced filter criteria, each including selected fields plus optional labels and flattened UDFs as specified.

If "Get All" is false, the number of returned records will respect the "Max Records" limit. Errors in query syntax or API response will throw, unless 'Continue On Fail' workflow option is enabled.

Examples

Example 1: Retrieve all Ticket Categories with a Status of 'Active' and include human-readable labels for picklist and reference fields.

Set 'Get All' to true, provide the 'Advanced Filter' JSON with status filter, enable 'Add Picklist Labels' and 'Add Reference Labels'. Leave 'Select Columns' empty to return all fields.

Links

Discussion