--- title: Assign subflow outputs flow logic description: 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. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/build-workflows/workflow-studio/flow-logic-assign-subflow-outputs.html release: australia product: Workflow Studio classification: workflow-studio topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 4 breadcrumb: [Flow logic, Flows, subflows, and actions reference, Flows, subflows, and actions, Workflow Studio, Build workflows] --- # Assign subflow outputs flow logic 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/subflows.md). ## 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. |