Autotask icon

Autotask

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

Actions1078

Role → Get Many (Advanced)

AI-generated

Summary

Retrieve Role records from Autotask using a JSON filter for advanced querying. When Get All is disabled, restricts Max Records to 1-500 with validation preventing invalid values in the advanced filter. Supports optional field selection and the addition of human-readable labels and flattened user-defined fields.

Inputs

  • Advanced Filter (required) — A JSON string containing a filter array of Autotask query criteria. Use Get Field Info to confirm field names; Search Filter Build can help construct the filter.
  • Get All — When enabled, return all matching records; otherwise, limit the result count using Max Records.
  • Max Records — Maximum number of records to return when Get All is off (1-500; defaults to 10). Also, when 'MaxRecords' is specified inside the Advanced Filter JSON, it must be an integer between 1 and 500; otherwise, an error is thrown.
  • Select Columns Names or IDs. — Choose fields to include. If none are selected, all fields are returned; the ID field is always included.
  • Add Picklist Labels — Defaults to enabled. Adds human-readable _label fields for non-empty picklist values.
  • Add Reference Labels — Defaults to enabled. Adds human-readable _label fields for non-empty reference values.
  • Flatten User-Defined Fields — Defaults to disabled. When enabled, brings user-defined fields to the top level instead of leaving them in the userDefinedFields array.

Output shape

A list of matching Role records, each returned as an n8n item.

The records are retrieved according to the Advanced Filter and optional field and label settings. Get All controls whether the configured record limit applies.

Links

Discussion