Autotask icon

Autotask

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

Actions524

Contract → Count (Advanced)

AI-generated

Overview

This node operation performs an advanced count query on the 'Contract' resource in the Autotask PSA system. It allows users to specify complex filtering criteria using a JSON string to count contracts that match those criteria. This is useful for scenarios where users need to get the number of contracts meeting specific conditions without retrieving full contract details, such as reporting or monitoring contract statuses based on custom filters.

Use Case Examples

  1. Count the number of active contracts with a specific contract type.
  2. Get the count of contracts that have a particular billing rule applied.

Properties

Name Meaning
Advanced Filter A JSON string containing a 'filter' array with Autotask API query criteria to specify which contracts to count. This filter must be constructed according to Autotask API documentation and can be built using the 'Get Field Info' and 'Search Filter Build' tools.

Output

JSON

  • count - The number of contracts matching the advanced filter criteria.

Dependencies

  • Requires an API key credential for Autotask PSA REST API authentication.

Troubleshooting

  • Ensure the 'Advanced Filter' JSON string is correctly formatted and follows the Autotask API query criteria syntax to avoid query errors.
  • If the node returns an error, verify that the API credentials are valid and have sufficient permissions to access contract data.
  • Check that the resource is set to 'Contract' and the operation to 'Count (Advanced)' to match the expected input properties.

Links

Discussion