Autotask icon

Autotask

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

Actions1078

Contract Charge → Create If Not Exists

AI-generated

Summary

Create a Contract Charge in Autotask, checking for an existing record first when deduplication fields are selected. A duplicate can be skipped or updated, or cause an error if Error on Duplicate is enabled.

Inputs

  • Error on Duplicate — Defaults to false. When enabled, throw an error if a duplicate is found instead of returning a skipped outcome; duplicate updates are disabled.
  • Dedup Fields Names or IDs — Fields used to find a duplicate. Defaults to empty; when empty, skip deduplication and always create a record.
  • Update Fields Names or IDs — Fields compared against a matching duplicate; update it if their values differ. Ignored when Error on Duplicate is enabled.
  • Fields (required) — Map the values for the Contract Charge to create. These values are also used for duplicate comparison and, when enabled, updating the duplicate.

Output shape

A list of items containing the created or matched Contract Charge record.

If a duplicate is found and Error on Duplicate is disabled, the operation may update the existing record when selected update fields differ, or return a skipped outcome. Exact output shape for skipped outcomes is not shown in the supplied source.

Links

Discussion