---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Run flow/subflow/action activity

# Run flow/subflow/action activity {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

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 {#run-flow-subflow-action-activity__section_jlq_bnc_4gc}

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 {#run-flow-subflow-action-activity__section_nql_hsc_4gc}

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-flow-subflow-action-activity__section_ujk_htc_4gc}

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-flow-subflow-action-activity__section_trw_15c_4gc}

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.

