---
title: "Row inserted"
description: "Run when a new row is inserted into a selected table."
canonical_url: "https://docs.vettero.com/build/event-handlers/row-inserted"
---
# Row inserted

> Run when a new row is inserted into a selected table.

<trigger-meta group="Table" icon="i-lucide-plus" type="table.on-insert">



</trigger-meta>

**Row inserted** runs when a new row is inserted into the selected [table](https://docs.vettero.com/data/tables).

## Payload

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

<tbody>
  <tr>
    <td>
      <code>
        tableId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Table to watch
    </td>
  </tr>
</tbody>
</table>

## Trigger data

Available as `args.*`. `row` matches the selected table.

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

<tbody>
  <tr>
    <td>
      <code>
        tableId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Table id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        rowId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Inserted row id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        row
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Inserted row values
    </td>
  </tr>
</tbody>
</table>

## Use case

- A [form](https://docs.vettero.com/data/forms) or grid insert creates a lead, ticket, or order — notify the team, enrich the row, or start onboarding.
- Welcome mail or WhatsApp when a new contact row appears.
- Kick off an [agent](https://docs.vettero.com/build/agents) or [workflow](https://docs.vettero.com/build/workflows) that should run only for brand-new rows, not every later edit.

<trigger-page-nav>



</trigger-page-nav>


## Sitemap

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