iTwin Forms icon

iTwin Forms

Comprehensive iTwin Forms API

Overview

This node interacts with the iTwin Forms API to retrieve form definitions associated with a specific iTwin or project. It is useful for users who want to programmatically access metadata about forms used within an iTwin environment, such as retrieving all available forms, filtering by type, status, discipline, or searching by name.

Practical examples include:

  • Fetching all approved form templates for a given iTwin project to display in a custom dashboard.
  • Searching for form definitions containing a specific keyword to automate form management workflows.
  • Filtering forms by their lifecycle status (e.g., Draft, Approved) to integrate with quality control processes.

Properties

Name Meaning
iTwin ID The GUID of the iTwin or project to get form definitions for. This is a required identifier and can also be provided using the alias projectId.
Type The form type to filter form definitions by. If omitted, all form types in the iTwin are returned.
Search A case-insensitive string to filter form definitions by name. Only forms whose names contain this string will be included in the results.
Status Filters form definitions by their status. Options are: Draft, Approved, Maintenance, Archived, or Any (to include all statuses). Default is Approved.
Discipline The form discipline to filter form definitions by. If omitted, forms from all disciplines are returned.

Output

The node outputs an array of JSON objects representing form definitions retrieved from the iTwin Forms API. Each object corresponds to a single form definition and contains its metadata fields as returned by the API.

If multiple form definitions are returned, each is output as a separate item in the output array.

No binary data output is produced by this node.

Dependencies

  • Requires an API authentication token credential configured in n8n to authenticate requests against the iTwin Forms API.
  • Depends on the iTwin Forms OpenAPI interpreter module bundled with the node to handle API operations.
  • Network connectivity to the iTwin platform's API endpoints is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing iTwin ID: Ensure the GUID provided is correct and accessible with your credentials.
    • Permission errors: Verify that the API key or OAuth token has sufficient permissions to read form definitions.
    • No results returned: Check filters like type, status, discipline, and search to ensure they match existing form definitions.
  • Error messages:

    • "Unknown operation: <operation>": Indicates the specified operation is not supported by the node. Confirm you are using the exact operation name get-project-form-definitions.
    • API request failures may return error messages related to authentication or invalid parameters. Review credentials and input property values.

Links and References

Discussion