Autotask icon

Autotask

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

Actions1078

Contract → Create If Not Exists

AI-generated

Summary

Create an Autotask contract from the mapped Fields. When Dedup Fields Names or IDs is set, check for a duplicate using those fields and return it instead of creating another contract; optionally update the duplicate’s selected fields or throw an error when one is found.

Inputs

  • Fields (required) — Map the contract fields to create.
  • Dedup Fields Names or IDs — Choose fields used to detect duplicates. The default is empty; the UI hint says an empty selection skips deduplication and always creates a contract.
  • Update Fields Names or IDs — Select fields to compare with a matched contract and update when values differ. Ignored when Error On Duplicate is enabled.
  • Error On Duplicate — When enabled, throw an error if a duplicate is found instead of returning it.

Output shape

A single contract record per input item, returned as n8n item data.

The properties declare the fields and duplicate-handling options, but the provided source pack does not include the Contract operation implementation, so its exact duplicate lookup and update behavior cannot be confirmed from source.

Examples

Example 1: Simple create

Set mapped fields; leave dedup fields empty to always create.

Example 2: Create or update

Set dedup fields and update fields; enable Error On Duplicate to throw instead of returning the duplicate.

Links

Discussion