Use the GetOutputs component

  • Release version: Australia
  • Updated March 12, 2026
  • 1 minute to read
  • Use the GetOutputs component to get the output of a flow or a subflow in Workflow Studio.

    Before you begin

    To understand more about flows in Workflow Studio, see Building flows.

    Before you use any Flow Designer component, use the Connection Manager to make sure that you're connected to the instance. For more information about how to connect to an instance, see Connect to an RPA Hub instance from RPA Desktop Design Studio.

    Use the GetExecutionStatus component to know the execution status of the flow or subflow. To use the component, see Use the GetExecutionStatus component.

    Role required: none

    About this task

    There are many reasons why you might want to receive the output of a flow. For example, suppose you have an automation that includes an incident number, and you want to obtain the incident’s description. You can use Workflow Studio to create a flow that takes the incident number as input and returns the description. Then, in RPA Desktop Design Studio, you can invoke the flow using the InvokeFlow component and send its context ID to the GetOutputs component to get the output, including the incident description.

    Procedure

    1. In the Toolbox pane, navigate to ServiceNow > Flow Designer.
    2. Drag the GetOutputs component to the Design surface.
    3. Optional: Configure the component properties by using the Properties pane.
      For example, you can configure the component to include a timeout or a delay before the component executes. For more information about these properties, see Properties of the Flow Designer components.
    4. Connect the data and control ports of the GetOutputs component to the corresponding ports of the other components as described in the following table.
      Table 1. GetOutputs - Ports
      Port type Purpose of connection Mandatory?
      Data In (Context ID) Receives a context ID from the InvokeFlow, InvokeSubFlow, or InvokeAction component Yes
      Data Out (Return) Returns the output of the flow, subflow, or action and passes it to the next component Yes.

      To view the output, right-click the Return field and click Preview Data.

      Control In Passes the control from the previously executed component. Yes
      Control Out Passes the control to the next component to be executed. No. Connecting this port is optional.

      To view the output in RPA Desktop Design Studio, right-click the Return field and select Preview Data.

    5. Optional: To test the component, under the DESIGN tab, click Run.