Autotask icon

Autotask

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

Actions1078

Opportunity Category → Get Many (Advanced)

AI-generated

Summary

Queries Autotask opportunity categories using an advanced JSON filter that must include a "filter" array of API query criteria. Validates any provided "MaxRecords" value in the filter to be an integer between 1 and 500 (throwing an error if invalid). Returns matching records, optionally limited, with configurable fields and optional labels or flattened user-defined fields.

Inputs

  • Get All — When enabled, returns all matching records; otherwise Max Records sets the limit (default 10, range 1–500).
  • Advanced Filter (required) — A JSON string containing Autotask API query criteria in a filter array. Use Get Field Info to confirm field names or Search Filter Build to construct the filter.
  • Add Picklist Labels — Defaults to true; adds human-readable _label fields for non-empty picklist values.
  • Add Reference Labels — Defaults to true; adds human-readable _label fields for non-empty reference values.
  • Select Columns Names or IDs. — Choose fields to include. If none are selected, all fields are returned; the ID field is always included.
  • Flatten User-Defined Fields — Defaults to false; when enabled, moves user-defined fields from the userDefinedFields array to the top level of each record.

Output shape

A list of matching opportunity category records, one output item per record.

The selected columns and label/flattening options affect each record's fields. Max Records applies when Get All is disabled.

Links

Discussion