Autotask icon

Autotask

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

Actions1078

Project Phase → Get Many

AI-generated

Summary

Fetches a collection of Project Phases from the Autotask PSA API.

Inputs

  • returnAll — If true, retrieves all available records; if false, limits results to the value specified in Max Records (default 10, max 500).
  • maxRecords — Maximum number of records to return (1-500). Only relevant when returnAll is false.
  • addPicklistLabels — Automatically adds '_label' fields for picklist fields containing human-readable values.
  • addReferenceLabels — Automatically adds '_label' fields for reference fields containing human-readable values.
  • selectColumns — Specifies which fields to include in the output. If empty, all fields are returned. The ID field is always included.
  • flattenUdfs — Moves user-defined fields (UDFs) from the nested 'userDefinedFields' array to the top level of each object.
  • fieldsToMap (required) — Resource mapper configuration defining which fields to map from the API response to the workflow item.

Output shape

A list of items, each containing Project Phase data.

Returns a standard n8n item array. The 'ID' field is always present. Output shape depends on the 'selectColumns' and 'flattenUdfs' settings.

Examples

Example 1: Fetch up to 25 Project Phases with all default field mappings.

returnAll: false, maxRecords: 25, addPicklistLabels: true, addReferenceLabels: true, flattenUdfs: false, fieldsToMap: default

Example 2: Retrieve all Project Phases and flatten user-defined fields for easier access.

returnAll: true, flattenUdfs: true

Example 3: Get a specific subset of fields (e.g., Name, ID, ProjectID) without labels.

selectColumns: [Name, ID, ProjectID], addPicklistLabels: false, addReferenceLabels: false

Links

Discussion