@servicenow/sdk - v4.7.0
    Preparing search index...
    • Interface

      Creates a Flow record (sys_hub_flow) that defines a series of actions to execute when triggered.

      Type Parameters

      Parameters

      • config: FlowDefinition<V, S>

        Flow configuration — name, description, priority, variables, stages, and protectionPolicy settings.

      • triggerInstance: F | undefined

        The trigger that starts this flow, created by calling wfa.trigger.

      • Optionalbody: (params: FlowBodyParams<F, OutputsWithDotwalk<V>, S>) => void

        The flow body function. Receives params containing trigger, flowVariables, and stages (any flow-level stages declared in config).

      Returns FlowDefinition<V, S>