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

    Variable assignActionOutputsConst

    assignActionOutputs: <O extends Record<string, unknown>>(
        _outputs: O,
        _values: { [K in string | number | symbol]?: string | O[K] },
    ) => void = AssignActionOutputs

    Assign action output values in the body, enabling datapill references to step results.

    Type Declaration

      • <O extends Record<string, unknown>>(
            _outputs: O,
            _values: { [K in string | number | symbol]?: string | O[K] },
        ): void
      • Type-only helper that assigns action output values in the action body, enabling datapill references to step results.

        Rules • _outputs is the output schema from params.outputs in the action body. • _values keys are constrained to the declared output names — arbitrary keys produce a TypeScript error and Ctrl+Space shows valid output names. • Each value must be assignable to the corresponding output type (string values are permitted for template expressions / datapills).

        This helper is erased at runtime – it only influences the TypeScript type-checker.

        Type Parameters

        • O extends Record<string, unknown>

        Parameters

        • _outputs: O

          Output schema from params.outputs in the action body.

        • _values: { [K in string | number | symbol]?: string | O[K] }

          Partial record mapping output names to their values.

        Returns void