# Data Record Info

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

Available in: Page Flow and Cloud Flow

Toolbox Category: Data

Block Type: [Output](/app-editor/page-flow/block-anatomy.md#output-block)

Output Type: [*object*](/app-editor/page-flow/references/value-types.md)
{% endhint %}

**`Data Record Info`** is an [output block](/app-editor/page-flow/block-anatomy.md#output-block) that provides the object representing a [database record](/app-editor/data/database-tables.md#table-records) when used inside specific contexts that are discussed [below](#valid-usage-contexts).

<div align="left"><figure><img src="/files/AuyVC6MQkrDQkNC5B6vQ" alt="" width="172"><figcaption><p>Data Record Info block</p></figcaption></figure></div>

The output is of type [*object*](/app-editor/page-flow/references/value-types.md) and is compatible with [Value Parameters](/app-editor/page-flow/block-anatomy.md#value-parameters) of type [*object*](/app-editor/page-flow/references/value-types.md) or of type [*any*](/app-editor/page-flow/references/value-types.md).

***

## Valid Usage Contexts

{% hint style="warning" %}
NOTE: This block will provide valid values only when used in the contexts discussed below:
{% endhint %}

* [Data Record Loop](/app-editor/page-flow/toolbox-blocks/data-record-loop.md) block (inside *Tasks* [Flow Parameter](/app-editor/page-flow/block-anatomy.md#flow-parameters)) : In this case the **`Data Record Info`** block provides the [record](/app-editor/data/database-tables.md#table-records) for the current loop iteration.
* [Data Status](/app-editor/page-flow/toolbox-blocks/data-status.md) block (inside Success *Tasks* [Flow Parameter](/app-editor/page-flow/block-anatomy.md#flow-parameters)) : Here the **`Data Record Info`** block provides the first [record](/app-editor/data/database-tables.md#table-records) read from successful execution of the [Data Read](/app-editor/page-flow/toolbox-blocks/data-read.md), [Data Read Next Page](/app-editor/page-flow/toolbox-blocks/data-read-next.md) , [Data Read Previous Page](/app-editor/page-flow/toolbox-blocks/data-read-previous.md) and [Data Lookup](/app-editor/page-flow/toolbox-blocks/data-lookup.md) blocks.
* [Data Lookup with ID](/app-editor/page-flow/toolbox-blocks/data-lookup-with-id.md) block (inside Success *Tasks* [Flow Parameter](/app-editor/page-flow/block-anatomy.md#flow-parameters)) : Here the **`Data Record Info`** block provides the [record](/app-editor/data/database-tables.md#table-records) that matched the provided [record ID](/app-editor/data/database-tables.md#id-field).

***

## 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 Record Info`** block. This example incorporates the *Usage Example* function, as outlined in the [Database Reading Logic for examples section](/app-editor/page-flow/references/prerequisite-for-data-examples.md#database-reading-logic-for-examples) on the prerequisite information page mentioned above.

<figure><img src="/files/U5I3WmGKjJeJLiWZ6pup" alt=""><figcaption><p>Example  for Data Record Info block</p></figcaption></figure>

Here is a summary of the above example:

* The [Data Record Loop](/app-editor/page-flow/toolbox-blocks/data-record-loop.md) block is used with the *Customers* [Database Table](/app-editor/data/database-tables.md) and the dataset name of *ds1* are as [Value Parameters](/app-editor/page-flow/block-anatomy.md#value-parameters) .
* For each iteration inside the *Tasks* [Flow Parameter](/app-editor/page-flow/block-anatomy.md#flow-parameters), we use the [Write Log Message](/app-editor/page-flow/toolbox-blocks/write-log-message.md) block to log the customer's email address by accessing the *EmailAddress* field of each record.
* To access information about the record, we use our **`Data Record Info`** block.

The result for the above example can be seen in the [browser's web console](https://developer.chrome.com/docs/devtools/console/), and a sample is shown below:

```log
[LOG(info) 08/29/2023 14:27:15.025] john.smith@example.com
[LOG(info) 08/29/2023 14:27:15.026] jane.smith@example.com
[LOG(info) 08/29/2023 14:27:15.026] max.mustermann@example.com
[LOG(info) 08/29/2023 14:27:15.027] joe.bloggs@example.com
```


---

# 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-record-info.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.
