# Data Lookup with ID

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

Available in: Page Flow and Cloud Flow

Toolbox Category: Data - Read

Block Type: [Regular](https://docs.zingy.ai/app-editor/block-anatomy#regular-block)
{% endhint %}

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

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FnGlsMg9tplhItPZkDaKM%2Fimage.png?alt=media&#x26;token=7506b0dd-352d-4257-b4fb-5738323664b1" 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](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) that accepts a [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) value representing the name of the [Database Table](https://docs.zingy.ai/app-editor/data/database-tables) .
* *Dataset Name:* [Value Parameter](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) that accepts a [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) 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](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) that accepts a [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) value representing the record identifier.

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

***

## Usage Example

{% hint style="info" %}
**NOTE: Please refer to the prerequisite information shown** [**here**](https://docs.zingy.ai/app-editor/page-flow/references/prerequisite-for-data-examples) **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](https://docs.zingy.ai/app-editor/page-flow/references/prerequisite-for-data-examples).

<figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2Fwg7yT2eyJw6hPk2aLe40%2Fimage.png?alt=media&#x26;token=a8cdb11a-213f-4daf-856b-3197bc53290f" 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="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FWPyzR4K0poLTRxJknpMT%2Fimage.png?alt=media&#x26;token=8d58e51e-ef58-4c28-92b9-cba73d32a987" alt=""><figcaption></figcaption></figure>
