Subroutines
Reusable automation logic blocks with defined inputs and outputs that reduce diagram complexity and allow shared functionality across multiple automations.
Subroutines are automations that can be referenced in other automations, allowing automation logic to be written once and re-used in multiple automations.
Subroutines have the following advantages:
- Their functionality can be re-used across multiple automations
- They have defined input fields and defined output fields
- They reduce the size and complexity of automation diagrams
Subroutines can also utilize other subroutines.
In this section
Creating a subroutine
Step-by-step process for building a new subroutine, including configuring input triggers, adding actions, defining output fields, and saving with a name and description.
Deleting a subroutine
Remove subroutines from your automation project using the right-click context menu in the catalog, with built-in protection against deleting referenced subroutines.
Download subroutine XML
Export a subroutine's XML definition to diagnose field mapping issues and inspect the underlying structure of your assembly components.
Edit description
Modify subroutine descriptions in the catalog by right-clicking the subroutine and selecting edit description, which then appear as tooltips when hoveling over items.
Executing a subroutine
Configure and call subroutines from automation workflows by selecting the execute subroutine action, choosing a subroutine, mapping input fields, and accessing output values in subsequent steps.
Export subroutine
Download a subroutine as a file for transfer to another system, available to users with Export permission.
Obtain a subroutine's UUID
Subroutines have unique identifiers that can be copied to your clipboard through a right-click context menu option for use in API calls and integrations.
Share a subroutine
How to grant other accounts access to your private subroutines using the Share option and permission controls.
Stop sharing a subroutine
Revoke access to private subroutines by stopping sharing with all accounts at once or selectively removing specific account permissions.
Subroutine references
Find which automations and subroutines call a specific subroutine by accessing the References option from the catalog right-click menu.
Tagging a subroutine
Assign one or more tags to subroutines via right-click menu, then search and filter subroutines by their tags for easier organization and discovery.
Testing a subroutine
Execute subroutines independently by right-clicking in the catalog, entering input values, and viewing the graphical execution history instantly.
Versions
Subroutine versions track all saved iterations of a subroutine, allowing you to open previous versions or compare them with the latest version to review changes.
View a subroutine's created and last edited dates
Access a subroutine's creation and last modified timestamps through the Properties option in the right-click context menu.
View execution history
View detailed execution logs for a subroutine by accessing its history from the catalog, including timestamps, status, and performance data for each run.