@servicenow/sdk - v4.7.0
    Preparing search index...
    actionStep: {
        (
            _step: string,
            _config: ActionStepInstanceConfig,
            _inputs: Record<string, unknown> & {
                errorHandlingType?: "stop_the_action" | "dont_stop_the_action";
            },
        ): any;
        <
            I extends Record<string, any>,
            O extends Record<string, any>,
            AI extends boolean,
            AO extends boolean,
            TInputs extends FlowIOType<I>,
            const OutputVars extends Record<string, Column>,
        >(
            _step: ActionStepWithMeta<FlowIOType<I>, FlowIOType<O>, AI, AO>,
            _config: ActionStepInstanceConfig,
            _inputs: TInputs & {
                errorHandlingType?: "stop_the_action" | "dont_stop_the_action";
            } & InputVarsFor<AI> & (
                AO extends true
                    ? { outputVariables?: OutputVars }
                    : { outputVariables?: undefined }
            ),
        ): StepOutputs<O, TInputs>;
    } = ActionStep

    Execute a step instance within an action definition. Pass a step definition from the actionStep built-ins.

    Type Declaration

      • (
            _step: string,
            _config: ActionStepInstanceConfig,
            _inputs: Record<string, unknown> & {
                errorHandlingType?: "stop_the_action" | "dont_stop_the_action";
            },
        ): any
      • ActionStep overload: Fallback for step references passed as a string (sys_id or name). Used when the step definition can't be resolved to a typed ActionStepDefinition — e.g., built-in steps or customer-defined steps whose definition isn't in the current project. Returns any to allow arbitrary property access for untyped step references.

        Parameters

        • _step: string
        • _config: ActionStepInstanceConfig
        • _inputs: Record<string, unknown> & {
              errorHandlingType?: "stop_the_action" | "dont_stop_the_action";
          }

        Returns any

      • <
            I extends Record<string, any>,
            O extends Record<string, any>,
            AI extends boolean,
            AO extends boolean,
            TInputs extends FlowIOType<I>,
            const OutputVars extends Record<string, Column>,
        >(
            _step: ActionStepWithMeta<FlowIOType<I>, FlowIOType<O>, AI, AO>,
            _config: ActionStepInstanceConfig,
            _inputs: TInputs & {
                errorHandlingType?: "stop_the_action" | "dont_stop_the_action";
            } & InputVarsFor<AI> & (
                AO extends true
                    ? { outputVariables?: OutputVars }
                    : { outputVariables?: undefined }
            ),
        ): StepOutputs<O, TInputs>
      • ActionStep overload: Custom step type referenced by ActionStepDefinition. Returns typed outputs with IntelliSense for output names and table-aware dot-walk.

        Type Parameters

        Parameters

        Returns StepOutputs<O, TInputs>