> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# append_records

### append\_records

<ul>
  <li>
    append\_records(\
    &#x20;table\_name: string,\
    &#x20;source\_table\_name: string,\
    &#x20;field\_map: Record\<string, string>,\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[AppendRecordsResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/AppendRecordsResponse.md)>

    Append (or insert) all records from a source table (specified by `source_table_name`) to a particular target table (specified by `table_name`). The field map (specified by `field_map`) holds the user specified map of target table column names with their mapped source column names.

    #### Parameters

    <ul>
      <li>
        table\_name: string

        The table name for the records to be appended, in \[schema\_name.]table\_name format, using standard name resolution rules. Must be an existing table.
      </li>

      <li>
        source\_table\_name: string

        The source table name to get records from, in \[schema\_name.]table\_name format, using standard name resolution rules. Must be an existing table name.
      </li>

      <li>
        field\_map: Record\<string, string>

        Contains the mapping of column names from the target table (specified by `table_name`) as the keys, and corresponding column names or expressions (e.g., 'col\_name+1') from the source table (specified by `source_table_name`). Must be existing column names in source table and target table, and their types must be matched. For details on using expressions, see Expressions.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[AppendRecordsResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/AppendRecordsResponse.md)>

    Promise\<Types.AppendRecordsResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:5228](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L5228)</li>
    </ul>
  </li>
</ul>

### append\_records\_request

<ul>
  <li>
    append\_records\_request(\
    &#x20;request: [AppendRecordsRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/AppendRecordsRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[AppendRecordsResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/AppendRecordsResponse.md)>

    Append (or insert) all records from a source table (specified by `source_table_name`) to a particular target table (specified by `table_name`). The field map (specified by `field_map`) holds the user specified map of target table column names with their mapped source column names.

    #### Parameters

    <ul>
      <li>
        request: [AppendRecordsRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/AppendRecordsRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[AppendRecordsResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/AppendRecordsResponse.md)>

    Promise\<Types.AppendRecordsResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:5197](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L5197)</li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.