# Fetch hierarchical data records from Airtable: n8n workflow

> Started by an event in a connected app, and works across Airtable. 32 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with...

Source: https://millionrounds.com/workflow/fetch-hierarchical-data-records-from-airtable (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# Fetch hierarchical data records from Airtable

Started by an event in a connected app, and works across Airtable. 32 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ffetch-hierarchical-data-records-from-airtable)

**32 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Logic 26 Service 5

The steps in the order they run, from what starts it.

- 1 **Execute Workflow Trigger** Execute Workflow trigger *Starts it*
- 2 **Inputs** Set *Logic*
- 3 **Airtable - Get Target Record** Airtable *Service*
- 4 **Get Airtable Comments** Http Request *Service*
- 5 **Airtable Schema** Airtable *Service*
- 6 **Rename comments** Set *Logic*
- 7 **Filter Main Table** Filter *Logic*
- 8 **Merge2** Merge *Logic*
- 9 **Split Out Fields** Split Out *Logic*
- 10 **Filter Link To fields** Filter *Logic*
- 11 **Add Inverse LinkTo Field name** Set *Logic*
- 12 **Get Linked records without Link To fields Except for Level 3** Http Request *Service*
- 13 **If Has Level 3** If *Logic*
- 14 **Loop Over L2 records arrays having L3 children to fetch** Split In Batches *Logic*
- 15 **Merge1** Merge *Logic*
- 16 **Repeat L3 links of current L2 table** Set *Logic*
- 17 **Level 2 records** Split Out *Logic*
- 18 **Add origin LinkTo** Set *Logic*
- 19 **Merge** Merge *Logic*
- 20 **Insert linked records to originRecord & Clean Field Name** Code *Logic*
- 21 **Loop Over L2 Records for a given L1 field** Split In Batches *Logic*
- 22 **If markdown to html** If *Logic*
- 23 **Aggregate to record list** Aggregate *Logic*
- 24 **Split Out L3 Potential Links** Split Out *Logic*
- 25 **Rich Text Fields list** Set *Logic*
- 26 **Prepare HTTP Call** Set *Logic*
- 27 **Markdown to Html** Code *Logic*
- 28 **Get L3 Linked records without reverse Link To fields** Http Request *Service*
- 29 **Preparing aggregation** Set *Logic*
- 30 **Aggregate1** Aggregate *Logic*
- 31 **Code to single field property** Code *Logic*
- 32 **Merge with original field property** Set *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 32, with 2 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Airtable
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Airtable account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 32 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 32 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ffetch-hierarchical-data-records-from-airtable)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Daily agenda reminder in Airtable - WhatsApp - Evolution** 33 steps · calls a model · Airtable](https://millionrounds.com/workflow/aviso-de-agenda-diaria-en-airtable-whatsapp-evolution)
- [**Extract information from a logo sheet with Airtable** 33 steps · calls a model · Airtable](https://millionrounds.com/workflow/extract-information-from-a-logo-sheet-with-airtable)
- [**AI agent to chat with Airtable** 30 steps · calls a model · Airtable](https://millionrounds.com/workflow/ai-agent-to-chat-with-airtable)
- [**Create stylized product photography with Airtable and Gemini** 30 steps · calls a model · Airtable](https://millionrounds.com/workflow/create-stylized-product-photography-with-airtable-and-gemini)
- [**AI data extraction with Airtable** 36 steps · calls a model · Airtable](https://millionrounds.com/workflow/ai-data-extraction-with-airtable)
- [**Assign unassigned Jira issues with Airtable** 28 steps · calls a model · Airtable, Jira](https://millionrounds.com/workflow/assign-unassigned-jira-issues-with-airtable)
