Autotask icon

Autotask

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

Actions1078

Project Note → Get Many (Advanced)

AI-generated

Summary

Queries the Autotask PSA API for multiple Project Note records using a custom advanced filter expressed as a JSON string. The filter must contain a 'filter' array with Autotask API query criteria. The operation supports retrieving all results or limiting to a maximum number of records between 1 and 500, enforced both by the 'maxRecords' parameter and by validation of any 'MaxRecords' value included in the advanced filter JSON to prevent HTTP 500 errors from the API.

Inputs

  • returnAll — Whether to return all results. When true, the maxRecords parameter is ignored.
  • maxRecords — The maximum number of records to return (1-500). Only used when returnAll is false. This parameter is validated and applied to the query.
  • advancedFilter (required) — A JSON string containing a 'filter' array with Autotask API query criteria. It may include an optional 'MaxRecords' integer property, which is validated to be between 1 and 500 inclusive to avoid API errors. Use Get Field Info to confirm exact field names and Search Filter Build to construct the JSON.
  • addPicklistLabels — Whether to automatically add '_label' fields for picklist fields with human-readable values (no labels for empty values).
  • addReferenceLabels — Whether to automatically add '_label' fields for reference fields with human-readable values (no labels for empty values).
  • selectColumns — Choose specific fields to include in the response. 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.

Output shape

A list of items, each containing a Project Note object with standard and selected fields.

Standard fields are returned by default. User-defined fields are nested in a 'userDefinedFields' array unless 'flattenUdfs' is enabled. Picklist and reference values are returned as IDs unless 'addPicklistLabels' or 'addReferenceLabels' are enabled.

Examples

Example 1: Retrieve up to 50 Project Notes associated with a specific project ID.

Set returnAll to false, maxRecords to 50, and advancedFilter to [{ field: 'ProjectID', operator: 'equals', value: '12345' }].

Example 2: Get all Project Notes for a specific contact.

Set returnAll to true, advancedFilter to [{ field: 'ContactID', operator: 'equals', value: '98765' }].

Links

Discussion