Hudu icon

Hudu

Interact with Hudu REST API

Procedure → Duplicate

AI-generated

Overview

This node operation duplicates an existing procedure within the Hudu system. It allows users to specify the ID of the procedure to duplicate and assign the duplicated procedure to a different company by providing the company name or ID. Additionally, users can optionally set a new name and description for the duplicated procedure. This operation is useful for quickly creating similar procedures without manually recreating all details, saving time and ensuring consistency.

Use Case Examples

  1. A user wants to duplicate a standard operating procedure from one company to another, changing only the name and description to reflect the new context.
  2. A company needs to create multiple similar procedures for different departments; duplicating an existing procedure and modifying the name and description streamlines this process.

Properties

Name Meaning
Procedure ID The ID of the procedure to duplicate, required to identify which procedure to copy.
Company Name or ID The target company for the new duplicated procedure, can be selected from a list or specified by ID or expression.
Additional Fields Optional fields to customize the duplicated procedure, including a new name and description.

Output

JSON

  • id - The unique identifier of the duplicated procedure.
  • name - The name of the duplicated procedure, either inherited or newly set.
  • description - The description of the duplicated procedure, either inherited or newly set.
  • companyId - The company ID associated with the duplicated procedure.

Dependencies

  • Requires authentication with Hudu REST API via an API key credential.

Troubleshooting

  • Common issues include providing an invalid or non-existent procedure ID, which will cause the duplication to fail with an error indicating the procedure was not found.
  • Providing an invalid company ID or name that does not exist in the system will result in an error when assigning the duplicated procedure to the company.
  • If required fields are missing, such as the procedure ID or company ID, the node will throw validation errors before execution.

Links

Discussion