{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4212,"path":"build-workflows/workflow-studio/get-flow-outputs-flow-logic.md","title":"Get Flow Outputs flow logic","bundle":null,"doc_type":null,"release":"australia","body":"\n# Get Flow Outputs flow logic\n\nRetrieve output values generated by dynamic flows or subflows.\n\n## Roles and availability\n\nAvailable as part of ServiceNow Core.\n\n-   **Role requirements**\n\n    This flow logic requires roles granted by delegated development or assigned to the user. For more information, see [User access to Workflow Studio flows](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/user-access-flow-designer.md).\n\n\n## Inputs\n\nProvide a value for each input that your flow logic needs. To add dynamic values, you can also select data pills using the pill picker.\n\n-   **Flow Template**\n\n    Data type: **Reference**\n\n    Flow or subflow that was used as a template for a dynamic flow. A flow template provides the inputs for a dynamic flow.\n\n-   **Context**\n\n    Data type: **Document ID**\n\n    Context record generated by a Dynamic flow flow logic.\n\n\n## Outputs\n\nYou can use these outputs as inputs for other items.\n\n-   **Response**\n\n    Data type: **JSON**\n\n    Output values generated by the dynamic flow or subflow. You can use the Response to set flow variables or assign subflow outputs.\n\n-   **Error Message**\n\n    Data type: **String**\n\n    Error message generated if there is no response.\n\n\n## Get outputs from dynamic AWA flows\n\n\\[Omitted image \"example-get-flow-outputs.png\"\\] Alt text:\n\nThe Advanced Work Assignment \\(AWA\\) application includes a read-only flow called AWA send external routing event. This flow runs a dynamic flow based on several input values. The Get Flow Outputs flow logic is configured to use the AWA send event flow as the **Flow Template** input value, and uses the output of the Dynamic Flow flow logic as the **Context** input value. The flow stores the **Response** output of the Get Flow Outputs flow logic as a flow variable. This flow variable is also assigned as a subflow output for use in other flows.\n\n**Parent Topic:**[Workflow Studio flow logic](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/flow-logic.md)\n\n**Related topics**  \n\n\n[Append to Flow Variables flow logic]()\n\n[Assign subflow outputs flow logic]()\n\n[Call a workflow flow logic]()\n\n[Do the following until flow logic]()\n\n[Do the following in parallel flow logic]()\n\n[Dynamic flows flow logic]()\n\n[End Flow flow logic]()\n\n[Exit Loop flow logic]()\n\n[For Each flow logic]()\n\n[Go back to flow logic]()\n\n[If flow logic]()\n\n[Make a decision flow logic]()\n\n[Set Flow Variables flow logic]()\n\n[Skip Iteration flow logic]()\n\n[Try flow logic]()\n\n[Wait for a duration flow logic]()\n\n"}}