# Read

## Traverse Entity

Through this Action, users can loop through the records in an entity.

1. Select Action as “Traverse Entity”.&#x20;
2. Select the entity to be traversed.&#x20;
3. Users can define other settings for the traverse by clicking the "Setup Criteria" button.&#x20;
4. The item variable automatically gets populated, representing that each record is traversed as an item.
5. The Criteria for the entity displays, which the user can define and save as needed.

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_6/ch6readtrvrseentity1.png>" %}

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_6/ch6readtrvrseentitycrit.png>" %}

## Entity Attribute Lookup

Through this Action, users can retrieve the single most recent (order by \_modifed\_date DESC) record by using a single field value.&#x20;

1. Select Action as “Entity Attribute Lookup”.&#x20;
2. Select the entity variable.&#x20;
3. The entity automatically gets populated.&#x20;
4. Select the field of the entity.&#x20;
5. Enter or select a value to be assigned to the field.

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_6/ch6readentityattlookup.png>" %}

## Entity Attribute Lookup List&#x20;

Through this Action, users can retrieve a list of records based on a single field value in descending order by \_modified\_date.&#x20;

1. Select Action as “Entity Attribute Lookup List”.&#x20;
2. Select or create a variable.&#x20;
3. If the variable is of an entity data type, the entity automatically gets populated.&#x20;
4. Select the field of the entity.&#x20;
5. Enter or select a value to be assigned to the field.

<figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_6/ch6readentityattlookuplst.png" alt=""><figcaption></figcaption></figure>

## Load Entity record

Through this Action, users can retrieve a single record based on Matched key criteria and order of the entity records.&#x20;

1. Select Action as “Load Entity record”.&#x20;
2. Select the entity from which the record is loaded.&#x20;
3. Click the "Setup criteria" button to define the match key and order.&#x20;
4. The Criteria for the entity displays, which the user can define and save as needed.

<figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_6/ch6readloadentityrec.png" alt=""><figcaption></figcaption></figure>

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_6/ch6readloadentityreccrit.png>" %}

## Load Entity record list&#x20;

Through this Action, users can retrieve a list of matching records based on Matched key criteria and order of the entity records.&#x20;

1. Select Action as “Load Entity record list”.&#x20;
2. Select or create a variable.&#x20;
3. Click the "Setup criteria" button to define the match key and order.
4. The Criteria for the entity displays, which the user can define and save as needed.

<figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_6/ch6readloadentityreclist.png" alt=""><figcaption></figcaption></figure>

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_6/ch6loadentityreclistcrit.png>" %}


---

# 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.langstack.com/welcome/get-started/learn-langstack/entities-crud-operations-from-api/read.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.
