Autotask icon

Autotask

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

Actions524

Change Request Link → Create If Not Exists

AI-generated

Overview

This node operation manages Change Request Links in the Autotask PSA system, specifically implementing a 'Create If Not Exists' functionality. It attempts to create a new change request link only if a duplicate does not already exist based on specified deduplication fields. This is useful in scenarios where you want to avoid creating duplicate links between change requests and tickets, ensuring data integrity and preventing redundant records.

Use Case Examples

  1. Automatically link a change request to a ticket only if such a link does not already exist, using ticket ID fields for duplicate detection.
  2. Create a new change request link while specifying custom fields to check for duplicates, and optionally throw an error if a duplicate is found.

Properties

Name Meaning
Dedup Fields Names or IDs Fields used for duplicate detection to determine if a change request link already exists. If empty, deduplication is skipped and a new link is always created.
Error on Duplicate Boolean flag indicating whether to throw an error when a duplicate change request link is found.
Fields Mapping of fields to be used in the create operation for the change request link. This defines the data to be sent when creating the link.

Output

JSON

  • id - The unique identifier of the created or found change request link.
  • status - The status of the operation, indicating if a new link was created or an existing one was found.
  • data - Detailed information about the change request link record.

Dependencies

  • An API key credential for Autotask PSA REST API access

Troubleshooting

  • If the node throws an error about duplicate detection, verify the deduplication fields are correctly specified and exist in the data.
  • Ensure the API credentials are valid and have sufficient permissions to create or query change request links.
  • If the operation always creates duplicates, check that the deduplication fields are correctly configured and that the data matches existing records as expected.

Links

Discussion