Autotask icon

Autotask

Consume Autotask REST API

Actions389

Overview

This node operation retrieves multiple Billing Code records from the Autotask system using an advanced filtering mechanism. It allows users to specify complex query criteria in JSON format to filter the billing codes returned. Users can choose to return all matching records or limit the number of records returned. Additionally, the node supports options to include human-readable labels for picklist and reference fields, select specific columns to return, and flatten user-defined fields for easier access. This operation is useful for scenarios where detailed and customized retrieval of billing codes is needed, such as generating reports, syncing billing data, or integrating billing information into other systems.

Properties

Name Meaning
Get All Determines whether to return all matching billing code records or limit the results to a specified maximum number.
Max Records Specifies the maximum number of billing code records to return when 'Get All' is set to false. The value must be between 1 and 500.
Advanced Filter A JSON string containing a 'filter' array with Autotask API query criteria to filter billing codes according to complex conditions.
Add Picklist Labels Whether to automatically add '_label' fields for picklist fields to provide human-readable values alongside the raw data.
Add Reference Labels Whether to automatically add '_label' fields for reference fields to provide human-readable values alongside the raw data.
Select Columns Names or IDs. Allows selection of specific fields to include in the response. If no fields are selected, all fields are returned. The ID field is always included.
Flatten User-Defined Fields When enabled, user-defined fields (UDFs) are brought to the top level of each object instead of being nested inside a userDefinedFields array.

Output

JSON

  • id - Unique identifier of the billing code record.
  • fieldName - Various fields of the billing code as returned by the Autotask API, depending on selected columns.
  • fieldName_label - Human-readable labels for picklist or reference fields if the respective options are enabled.
  • userDefinedFields - Array of user-defined fields associated with the billing code, unless flattened option is enabled.

Dependencies

  • Requires an Autotask API credential (API key or token) to authenticate requests.
  • Relies on the Autotask REST API for billing code data retrieval.

Troubleshooting

  • Invalid JSON in the 'Advanced Filter' property can cause parsing errors. Ensure the JSON string is correctly formatted and contains a 'filter' array as per Autotask API documentation.
  • Requesting too many records without pagination or 'Get All' enabled may lead to timeouts or API limits. Use 'Max Records' to limit results or enable 'Get All' cautiously.
  • Selecting invalid or unsupported columns in 'Select Columns' may result in errors or missing data. Use the 'Get Field Info' feature to confirm valid field names.
  • If labels are not appearing, verify that 'Add Picklist Labels' and 'Add Reference Labels' options are enabled and that the fields have non-empty values.
  • API authentication errors may occur if the Autotask API credentials are missing, expired, or incorrect. Verify credentials in the node settings.

Links

Discussion