Skip to content
English
  • There are no suggestions because the search field is empty.

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:

Document image
 

In the System app:

Document image
 

Here:

Document image
 

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

Document image
 

Select the subroutine to use from the list:

Document image
 

Then click the Fetch button:

Document image
 

Then configure the input fields for the subroutine and save:

Document image
 

Subsequent actions can access the subroutine's output fields:

Document image
 

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

Document image
 

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

Document image
 

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