Overview

The Flow Output Block is used to define the outputs of a flow. Each instance of this block represents an individual output of the flow. The value passed into this block becomes part of the overall output of the flow.

When a flow is used as a subflow, each Flow Output Block in the flow turns into an output port on the subflow block.

    Example 1: Define an output for a flow

    1. Create a Text Block and set the value to Hello, world!.
    2. Create a Flow Output Block and set the ID to greeting and the Data Type to String.
    3. Connect the Text Block to the Value input of the Flow Output Block.
    4. Create another flow, and add a Subflow Block to the flow. Set the Subflow Block’s Flow ID to the ID of the flow created in step 1.
    5. Run the flow. You should see the greeting output of the subflow is “Hello, world!”

    Error Handling

    The Flow Output Block will error if the data type of the value passed into the block does not match the data type configured in the block settings.

    FAQ

    Q: Can I have multiple Flow Output Blocks in a flow?

    A: Yes, you can have multiple Flow Output Blocks in a flow. Each Flow Output Block represents an individual output of the flow. The ID of each Flow Output Block should be unique.

    Q: What happens if the ID of a Flow Output Block is not unique?

    A: If the ID of a Flow Output Block is not unique, the output of the flow will contain the value of the last Flow Output Block with that ID that was processed.

    Q: Can I use the Flow Output Block to output an array or an object?

    A: Yes, you can use the Flow Output Block to output any data type. The data type of the value passed into the block should match the data type configured in the block settings.

    See Also