Autotask icon

Autotask

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

Actions524

Contract Block → Get Many

AI-generated

Overview

This node operation retrieves multiple Contract Block records from the Autotask PSA system. It supports fetching all records or limiting the number of records returned, with options to customize the output fields and formatting. This operation is useful for scenarios where users need to list or analyze multiple contract blocks, such as generating reports or syncing contract block data with other systems.

Use Case Examples

  1. Fetch all contract blocks to synchronize with an external database.
  2. Retrieve a limited number of contract blocks for display in a dashboard.
  3. Get contract blocks with specific fields selected to optimize data transfer and processing.

Properties

Name Meaning
Get All Whether to return all results or only up to a given limit.
Max Records Maximum number of contract block records to return when not returning all.
Add Picklist Labels Whether to automatically add human-readable labels for picklist fields in the output.
Add Reference Labels Whether to automatically add human-readable labels for reference fields in the output.
Select Columns Names or IDs. Choose which fields to include in the response; if none selected, all fields are returned. The ID field is always included.
Flatten User-Defined Fields Whether to bring user-defined fields up to the top level of each object instead of nested in an array.
Fields Mapping configuration for fields to define how data is structured or transformed.

Output

JSON

  • id - Unique identifier of the contract block record.
  • name - Name or title of the contract block.
  • description - Description or details about the contract block.
  • startDate - Start date of the contract block.
  • endDate - End date of the contract block.
  • hourFactor - Hour factor associated with the contract block.
  • billingCode - Billing code linked to the contract block.
  • userDefinedFields - User-defined fields related to the contract block, optionally flattened to top-level properties.
  • _label - Additional human-readable labels for picklist or reference fields if enabled.

Dependencies

  • An API key credential for Autotask PSA REST API

Troubleshooting

  • Ensure the API credentials are correctly configured and have sufficient permissions to access contract block data.
  • If the node returns no data, verify that contract blocks exist in the Autotask system and that any filters or limits are set appropriately.
  • Errors related to rate limits may occur; ensure the API rate tracker is properly initialized or handle rate limiting in your workflow.
  • If picklist or reference labels are not appearing, check that the corresponding options are enabled and that the fields support labels.

Links

Discussion