Autotask icon

Autotask

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

Actions524

AI Helper → Validate Parameters

AI-generated

Overview

The AI Helper node's 'Validate Parameters' operation validates input parameters for a specified resource in either 'create' or 'update' mode. It checks the provided JSON field values against the resource's expected parameters to ensure they meet the required criteria before creating or updating a record. This is useful for pre-validation in workflows to prevent errors due to invalid or missing data.

Use Case Examples

  1. Validating parameters for creating a new ticket with fields like title, priority, and companyID.
  2. Validating parameters for updating an existing contact record to ensure all required fields are correctly provided.

Properties

Name Meaning
Resource Name or ID Selects the target resource to validate parameters for, either by choosing from a list or specifying an ID via expression.
Mode Specifies the operation mode for validation, either 'create' to validate parameters for creating a new record or 'update' for updating an existing record.
Field Values (JSON) A JSON object containing field IDs as keys and their corresponding values to validate, using the same format as the bodyJson parameter in create/update operations.

Output

JSON

  • validationResult - The result of the parameter validation, indicating success or detailing validation errors.

Dependencies

  • Requires an API key credential for authentication with the Autotask API to perform validation.

Troubleshooting

  • Common issues include providing invalid or incomplete field values that do not meet the resource's required parameters, resulting in validation errors.
  • Errors may occur if the specified resource name or ID is incorrect or not supported by the node.
  • Ensure the JSON format for field values is correct and matches the expected structure for the resource.
  • Authentication errors may arise if the API key credential is missing or invalid.

Links

Discussion