Specify the data the subflow returns when it completes running. Use subflow output as data for a parent flow or as input for another process.

Important: This flow logic sets values for flow outputs that have already been created. For instructions on creating flow outputs, see Building subflows.

Inputs

Field Description
Name Name of the output. Select from the list of outputs available for the flow.
Data Value for the output. Enter a string value, input a script, or use a data pill. Output values can reference any data pill from earlier in the flow, including other outputs. If you set outputs values by reference to other data pills, you must maintain the order of the output assignments. The referenced value must always come before the output that uses the referenced value. Changing the order may produce null values. To assign an empty value, leave this field empty.
Note: Flow output values are set in the order in which they are assigned from top to bottom. If you set the value of the same output multiple times, the flow only uses the last value set.

Outputs

This flow logic produces no outputs of its own, but it does set values in the Subflow Outputs section of the Data pane.

Example: Set the output code of a Delete Record action

In this example, the flow uses the Sys ID of a dashboard to look up a record, delete the record, and then return the action status code of the delete operation. The subflow assigns the output value of the Output code flow variable.

Figure 1. Assign Subflow Outputs flow logic inputs
Assign Subflow Outputs example

Design considerations

Follow these design considerations when assign output values from a subflow.

Do not assign subflow output values within loops
Subflow outputs are intended to be static values generated at the completion of the subflow. Loops do not have access to subflow output values while the subflow is running. Assigning subflow output values within a loop can produce unexpected results such as the loop only receiving the last value set. If you need to generate dynamic values that change within a For each or Do until loop, use flow variables instead.