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

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FTeCZXsx3nD0jymyvBHHA%2Flookup%20field%20list.png?alt=media\&token=d60a9328-b0aa-416f-975b-bb69f2396654)

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

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FrYX60UCje7rwrAFTrXcJ%2FRepeating%20elements.png?alt=media\&token=3091bfdf-8aa8-46e0-9f6b-5c0616c7a22d)

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](https://docs.documint.me/integrations/airtable/legacy-airtable-integration/expanding-linked-records)
{% endhint %}


---

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