Executing a subroutine
Learn how to execute a subroutine from an automation in APIANT. Add the 'Execute Subroutine' action, select and fetch the subroutine, configure input fields, and access output data. View detailed input, output, and processing steps in the graphical automation history.
From an automation, either search for the "execute subroutine" action or find it under the System Utility category:

In the System app:

Here:

It's generally easier to just search for "subr" after choosing "find an action":

Select the subroutine to use from the list:

Then click the Fetch button:

Then configure the input fields for the subroutine and save:

Subsequent actions can access the subroutine's output fields:

In the graphical automation history you can examine the subroutine's input and output:

Click on either the subroutine or the Details button to drill down and examine the processing performed by the subroutine:

When the parent automation's history is searched, any subroutines it uses are also searched and included in the search results.