Run flow/subflow/action activity

  • Versão de lançamento: Australia
  • Atualizado 12 de mar. de 2026
  • 1 min. de leitura
  • Call a Workflow Studio flow, subflow, or action from a workflow. Configure the activity to pass inputs, run pre-processing script, or run a post-processing script.

    Flow Designer Selection

    Type
    Data type: Choice

    Type of Workflow Studio component to run. Options include flow, subflow, and action.

    Flow
    Data type: Reference

    The Workflow Studio flow that you want to run. This option is only visible when the type is Flow.

    Subflow
    Data type: Reference

    The Workflow Studio subflow that you want to run. This option is only visible when the type is Subflow.

    Action
    Data type: Reference

    The Workflow Studio action that you want to run. This option is only visible when the type is Action.

    Wait for completion
    Data type: True/False

    Option to pause the workflow until this activity runs to completion. Generally, you select this option if your workflow needs to access the output data from the Workflow Studio flow, subflow, or action.

    Inputs

    Has inputs
    Data type: True/False

    Option to specify input data as a script.

    Inputs
    Data type: JavaScript

    Script field where you can provide input values to Workflow Studio flows, subflows, or actions. The script must define an object variable named answer. Define an object property for each input the flow, subflow, or action requires.

    Pre Process Script

    Run pre process script
    Data type: True/False

    Option to run a script before the Workflow Studio flow, subflow, or action runs.

    Pre-process script
    Data type: JavaScript

    Script field where you can where you can gather or manipulate workflow data before running the Workflow Studio flow, subflow, or action.

    Post Process Script

    Run post process script
    Data type: True/False

    Option to run a script after the Workflow Studio flow, subflow, or action runs.

    Post-process script
    Data type: JavaScript

    Script field where you can where you can gather or manipulate data generated by a Workflow Studio flow, subflow, or action. Workflow Studio data is only available when the Wait for completion option is selected. By default, the activity.scratchpad.flowContextId variable contains the Sys ID of the flow context, the activity.result variable contains the state of the flow context, and the activity.scratchpad.flowOutputs variable contains the output values generated by subflows and actions.