Autotask icon

Autotask

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

Actions1078

Opportunity → Create If Not Exists

AI-generated

Summary

Creates an Autotask opportunity when no duplicate matches the selected deduplication fields. When a duplicate is found, it returns that record or updates the selected fields; enable Error On Duplicate to raise an error instead.

Inputs

  • Fields (required) — Map the opportunity fields to submit. The available fields depend on Autotask's resource metadata.
  • Dedup Fields Names or IDs — Choose the opportunity fields used to detect duplicates, or specify field IDs with an expression. If empty, duplicate detection is skipped and an opportunity is always created.
  • Update Fields Names or IDs — Choose fields to compare with a matched duplicate; differing values are updated. 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 list of opportunity items, one per input item.

For a duplicate, returns the existing opportunity unless Error On Duplicate is enabled; selected update fields may modify it first. If deduplication fields are empty, creates a new opportunity.

Links

Discussion