---
title: "Table Insert"
description: "Insert a row into a workspace table."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/table/insert"
---
# Table Insert

> Insert a row into a workspace table.

<block-meta block="Yes" channels="Any" folder="table" group="Table" groupTo="/build/workflows/blocks/table" icon="i-lucide-plus" pipe="Value" scope="Any" tool="Yes" type="table.insert">



</block-meta>

**Table Insert** adds one row to a [table](https://docs.vettero.com/data/tables). Map each column you want to set to a fixed value or a variable. Keys must match the column **key**, not the display name.

The inserted row (including `id`) is written to the data pipe.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Table
      </strong>
    </td>
    
    <td>
      Workspace table to write (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Fields
      </strong>
      
       / <strong>
        Field values
      </strong>
    </td>
    
    <td>
      Values for table columns (literal or variable)
    </td>
  </tr>
</tbody>
</table>

Leave a field unmapped to use the table’s default for that column.

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the row is created
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The value is an object:

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        row
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Inserted row, including <code>
        id
      </code>
      
      , <code>
        createdAt
      </code>
      
      , <code>
        updatedAt
      </code>
      
      , and table fields
    </td>
  </tr>
</tbody>
</table>

## Use case

- Create a lead, ticket, or order after a [form](https://docs.vettero.com/data/forms) or chat [input](https://docs.vettero.com/build/workflows/blocks/in).
- Store a file upload: write the upload object’s keys to matching file columns.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
