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

    Type Alias ResolveActionOutputs<O, RawO, TInputs>

    ResolveActionOutputs: [O] extends [any]
        ? any
        : HasDependentOutput<RawO> extends true
            ? ExtractInputTable<TInputs, RawO> extends never
                ? O
                : OutputsWithDependentTable<RawO, ExtractInputTable<TInputs, RawO>>
            : O

    Resolve action outputs with dependent table awareness. If the action has outputs with 'dependent' fields pointing to table inputs, and we know the table from inputs, provide table-aware typing.

    When O is any (e.g., for getCatalogVariables), returns any to allow arbitrary property access.

    Type Parameters

    • O

      The transformed outputs type (OutputsWithDotwalk applied)

    • RawO extends Record<string, FlowValueType>

      The raw outputs schema (for checking dependent fields)

    • TInputs

      The actual inputs provided to the action

    // IntelliSense shows fields from 'incident' table on result.record
    const result = wfa.action(
    action.core.createRecord,
    { $id: Now.ID['create_incident'] },
    { table_name: 'incident', values: '' }
    )
    result.record.number // IntelliSense for incident fields
    result.record.short_description