# Documents from  Multiple Records

By default, Documint generates data based on an individual [record](https://support.airtable.com/hc/en-us/articles/360021333094-Getting-started-tables-records-and-fields#record) or row. But what if you need several records to display on your template? Here are the steps to achieve this result.<br>

1. Head over to Airtable and create a table that will group all your record items together. In this example, we will want to display all the description in the Line Items table along with each record's information like price, quantity, etc.

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FthrvRhgMUD4vUYHsbrJ2%2FScreenshot%202026-03-10%20at%2016.53.58.png?alt=media\&token=262e1c8a-5f48-41c6-a23c-e2fd869f3fee)

2\. Once you have a table ready to group these line items, create a linked record field. In this example, we decided to group all the line items in the Invoice table.&#x20;

{% hint style="info" %}
Documents will be generated from the Invoice Table.
{% endhint %}

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2F08yYzq3v7aP7TOJUkmLZ%2FScreenshot%202026-03-10%20at%2016.55.28.png?alt=media\&token=ca039519-352f-48db-824b-a911a3f225b1)

3\. Begin adding all the records you need to be displayed in the document.&#x20;

{% hint style="success" %}
See the [Filter List](https://docs.documint.me/templates/document-structure-and-layout/page-elements/repeat-loop#filtering-list-items) functionality to filter items needed to be displayed.
{% endhint %}

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2F56BL6PYPsrFBzVygZ65E%2FScreenshot%202026-03-10%20at%2017.40.16.png?alt=media\&token=87bd9e87-0bad-471f-a3ca-6d70ebd7ae61)

{% hint style="warning" %}
Remember to [expand](https://docs.documint.me/templates/working-with-dynamic-data/connections/airtable-connection#configuring-linked-records) the Linked Record in the Airtable Connection.
{% endhint %}

4\. Add the [Generation Link](https://docs.documint.me/integrations/airtable/generation-link) or [Automation script](https://docs.documint.me/integrations/airtable/automation-script) to the new table created.&#x20;

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2F1LSC8v8Avt0YUeRkmOB1%2FScreenshot%202026-03-10%20at%2017.48.56.png?alt=media\&token=6aa4c0a8-b1bc-48bb-9a21-f73e48ff31c5)

#### Documint Template Designer Page

5\. Create a Row with the number of elements you will need to create the line items. Select the Row and Edit Logic.&#x20;

{% hint style="info" %}
Adding a rows to a row and then adding more columns will align fields better.
{% endhint %}

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FkgdeiXJCp3y6mAyeXgPH%2FScreenshot%202026-03-10%20at%2017.56.28.png?alt=media\&token=67a94679-be81-42f1-a182-33752a75490a)

6\. In the Logic editor, select Repeat/Loop and select the name of the linked field created in the earlier steps. In our example, we will loop over the fields from the "Line Items" table.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2F9b6L5WA4LninEiPicvz4%2FScreenshot%202026-03-10%20at%2017.59.37.png?alt=media&#x26;token=dc29c7c8-a3a0-4390-93e3-62ba1234ba49" alt="" width="563"><figcaption></figcaption></figure>

7\. Edit the template style as desired.&#x20;

8\. In Airtable, generate a document to see all your records! No more typing items from your database one by one!

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Fw721jgaLtqQNg1he6LfQ%2FScreenshot%202026-03-10%20at%2018.00.39.png?alt=media\&token=d2533187-4c28-4cdf-8f71-e37b6d89bb73)


---

# 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/documents-from-multiple-records.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.
