> For the complete documentation index, see [llms.txt](https://docs.documint.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.documint.me/integrations/airtable/legacy-airtable-integration/lookup-fields.md).

# Lookup Fields

{% embed url="<https://support.airtable.com/hc/en-us/articles/360042312194-Lookup-field-overview>" %}

A lookup field allows you to pull record contents from one linked record into another linked record. As a reminder, linked relationships can be either within the same table or across two separate tables.

### Displaying on a single line

{% tabs %}
{% tab title="Template" %}

```
{{company_names}}
```

{% endtab %}

{% tab title="Data" %}

```
{
    "company_names": [ "Documint", "SunRun" ]
}
```

{% endtab %}

{% tab title="Untitled" %}
Documint, Sunrun
{% endtab %}
{% endtabs %}

### Displaying on multiple lines

1. Add `{{this}}`as your variable and select the element where the lookup field will be displayed.

![](/files/Qrd3PYRqjA0MZyRmt8sk)

2\. Click "Edit Logic on the left panel and edit **"Repeat/Loop"**

![](/files/pon9I01rgtrgfZ97yR2s)

3\. Add the lookup field name in the **"List Variable"** box and **Save**

{% tabs %}
{% tab title="Template" %}

```
{{this}}
```

{% endtab %}

{% tab title="Data" %}

```
{
    "company_names": [ "Documint", "SunRun", "Whole Foods" ]
}
```

{% endtab %}

{% tab title="Result" %}
Documint

SunRun

Whole Foods
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
If Lookup fields are linked to Linked Records, a table ID is required. See [Expanding Linked Records](/integrations/airtable/legacy-airtable-integration/expanding-linked-records.md)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.documint.me/integrations/airtable/legacy-airtable-integration/lookup-fields.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.
