Autotask icon

Autotask

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

Actions1078

Project Task Secondary Resources → Get Many (Advanced)

AI-generated

Summary

Fetches multiple Project Task Secondary Resources from Autotask using an advanced JSON filter query. Supports limiting results by 'maxRecords' with validation against Autotask's 1-500 record limit when using the advanced filter's 'MaxRecords' field.

Inputs

  • returnAll — Whether to return all results (true) or up to a specified limit (false).
  • maxRecords — The maximum number of records to return when not returning all records. Defaults to 10, with a valid range of 1 to 500. When specifying 'MaxRecords' within the advanced filter JSON, values above 500 will cause an error.
  • advancedFilter (required) — A JSON string containing a 'filter' array with Autotask API query criteria. Use Get Field Info and Search Filter Build tools to construct the filter.
  • 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 specific fields to include in the response (or specify IDs using an expression). If empty, all fields are returned. The ID field is always included.
  • flattenUdfs — Whether to bring user-defined fields up to the top level of each object instead of nesting them in a userDefinedFields array.

Output shape

A list of items, each representing a Project Task Secondary Resource object.

The ID field is always included regardless of selection. Picklist and reference labels can be automatically added.

Examples

Example 1: Get up to 50 secondary resources for a specific project task ID.

Set 'returnAll' to false, 'maxRecords' to 50, and provide a filter like [["TaskId", "=", "1234567"]] in the 'advancedFilter' JSON field.

Example 2: Retrieve all secondary resources for a specific task without a limit.

Set 'returnAll' to true and provide a filter in the 'advancedFilter' JSON field (e.g., [["TaskId", "=", "1234567"]]).

Links

Discussion