# Data Lookup with ID

{% hint style="info" %}
**Block Information**

Available in: Page Flow and Cloud Flow

Toolbox Category: Data - Read

Block Type: [Regular](/app-editor/page-flow/block-anatomy.md#regular-block)
{% endhint %}

**`Data Lookup with ID`** is a [regular block](/app-editor/page-flow/block-anatomy.md#regular-block) that triggers the search for a [record](/app-editor/data/database-tables.md#table-records) from a [database table](/app-editor/data/database-tables.md). The search operation is carried out using the [automatically created ID field](/app-editor/data/database-tables.md#id-field) that is part of every database table.

<div align="left"><figure><img src="/files/6GtMn4VEXc2lytr464Ip" alt="" width="275"><figcaption><p>Data Lookup with ID block</p></figcaption></figure></div>

The block consists of the following (from top to bottom):

* *Table:* [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts a [*text*](/app-editor/page-flow/references/value-types.md) value representing the name of the [Database Table](/app-editor/data/database-tables.md) .
* *Dataset Name:* [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts a [*text*](/app-editor/page-flow/references/value-types.md) value representing the name of the dataset. This can be any text value and can later be used to track the completion of the read.
* *Record ID*: [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts a [*text*](/app-editor/page-flow/references/value-types.md) value representing the record identifier.

{% hint style="success" %}
To access the record after a successful search, use the [Data Record Info](/app-editor/page-flow/toolbox-blocks/data-record-info.md) block.
{% endhint %}

***

## Usage Example

{% hint style="info" %}
**NOTE: Please refer to the prerequisite information shown** [**here**](/app-editor/page-flow/references/prerequisite-for-data-examples.md) **before seeing the example.**&#x20;
{% endhint %}

The image below shows an example of the **`Data Lookup with ID`** block where a search is conducted on the *Customers* database table which we have discussed [here](/app-editor/page-flow/references/prerequisite-for-data-examples.md).

<figure><img src="/files/iaPs1vFzsxvo6iT4g0Nj" alt=""><figcaption><p>Example of Data Lookup with ID</p></figcaption></figure>

The result for the above example is shown in the image below.

<figure><img src="/files/Jr1tqocKpTVmnhXnjo1b" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-lookup-with-id.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
