Autotask icon

Autotask

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

Actions1078

Contract Service → Create If Not Exists

AI-generated

Summary

Creates a Contract Service record in Autotask, optionally checking for a duplicate first. When a duplicate is found, the operation can return it, update it with changed mapped fields, or throw an error, depending on the configured options.

Inputs

  • Dedup Fields Names or IDs — Fields used to search for a duplicate. Leave empty to skip duplicate detection and always create a record.
  • Update Fields Names or IDs — Fields compared with a found duplicate and updated when their values differ. Ignored when Error On Duplicate is enabled.
  • Error On Duplicate — Throw an error when a duplicate is found instead of returning it.
  • Fields (required) — Map the fields and values for the Contract Service record to create; these values are also used for duplicate comparison or updates where applicable.

Output shape

A list of items containing the created or duplicate Contract Service record.

When deduplication is enabled and a duplicate is found, behavior depends on the options: return the duplicate, update it if configured, or throw an error. Empty dedup fields skip the duplicate check.

Links

Discussion