Use execute script (script within a script) with a datatable
The main script datatable can be passed down to the subscript. The subscript cannot be passed to the main script. When you drag the subscript directly into the main script, the run time parameters will be entered automatically in the correct order.
-
Define the datatable in the main script using a variable. (Also, make sure to define the loop as a datatable.)
-
In the subscript, create an empty variable (
type = string
) and select the Runtime checkbox. This variable will receive the data from the data table during runtime. -
After inserting the subscript into the main script, click the subscript and edit the variable that will receive information from the datatable (
type = string
andusage = DataTable
).