---
title: "Table Find"
description: "Select rows from a workspace table by row id or query filter."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/table/find"
---
# Table Find

> Select rows from a workspace table by row id or query filter.

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



</block-meta>

**Table Find** loads rows from a [table](https://docs.vettero.com/data/tables). Choose **By Row ID** for one known row, or **By Query** to filter, paginate, and sort.

The shape on the data pipe changes with **Mode** and **Pagination**. Use [Bind Pipe](https://docs.vettero.com/build/workflows/blocks/context/bind-pipe) if a later step still needs this result after the pipe moves on.

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        Table
      </strong>
    </td>
    
    <td>
      Workspace table to read (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Mode
      </strong>
    </td>
    
    <td>
      <strong>
        By Row ID
      </strong>
      
       or <strong>
        By Query
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Row ID
      </strong>
    </td>
    
    <td>
      Shown in By Row ID — the row to load (literal or variable)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Filters
      </strong>
    </td>
    
    <td>
      Shown in By Query — conditions on table fields
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Pagination
      </strong>
    </td>
    
    <td>
      Shown in By Query — <strong>
        One
      </strong>
      
      , <strong>
        All
      </strong>
      
      , <strong>
        Limit/Skip
      </strong>
      
      , or <strong>
        Limit/Page
      </strong>
      
      . Default <strong>
        One
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Limit
      </strong>
      
       / <strong>
        Skip
      </strong>
      
       / <strong>
        Page
      </strong>
    </td>
    
    <td>
      Shown for Limit/Skip or Limit/Page
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Sorting
      </strong>
    </td>
    
    <td>
      Shown in By Query — optional field and ascending/descending order
    </td>
  </tr>
</tbody>
</table>

## 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 rows are loaded
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`).

**By Row ID**, or **By Query** with pagination **One**:

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

<tbody>
  <tr>
    <td>
      <code>
        row
      </code>
    </td>
    
    <td>
      object or null
    </td>
    
    <td>
      The matched row, or null if none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        total
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      <code>
        0
      </code>
      
       or <code>
        1
      </code>
    </td>
  </tr>
</tbody>
</table>

**By Query** with **All**, **Limit/Skip**, or **Limit/Page**:

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

<tbody>
  <tr>
    <td>
      <code>
        rows
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Matched rows
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        total
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      Total matching count when paginated
    </td>
  </tr>
</tbody>
</table>

Each row uses that table’s [field](https://docs.vettero.com/data/tables/fields) keys, plus `id`, `createdAt`, and `updatedAt`.

## Use case

- Look up a contact or order by id from `args` or an earlier block.
- Load a short list of open tickets, then loop with [For Of](https://docs.vettero.com/build/workflows/blocks/loops/for-of).
- Prefer a saved [query](https://docs.vettero.com/build/queries) when agents and widgets should call the same select.

<block-page-nav>



</block-page-nav>


## Sitemap

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