Guide · 2026-10-24

Lookup of a lookup, to any depth

Some questions are not about a record's own links but about everything its links lead to. "Which of my emails has never been used on this platform, by any route?" is one. Here is why chains of lookup fields get that wrong, and how a single path lookup field gets it right.

The question

Say you keep your accounts in four linked tables:

You want the emails that have never been used on platform xxx. An email counts as used when an xxx account signed up with it, or signs in with a GitHub or Google account that was registered with it. Later you may add Apple sign-in, or recovery emails that tie one address to another, and the answer should keep counting those too.

Why a chain of lookups falls short

Table tools answer cross-table questions with lookup fields, and a lookup follows one link field. To reach xxx accounts from an email through GitHub, you add a lookup on GitHub that brings each account's platform back, then a lookup on Emails that brings that lookup back, then a filter. That is one route. Google sign-ins need their own pair of fields, direct sign-ups another, and a chain of recovery emails has no fixed length at all, so no number of fields covers it.

People have asked for this for years. An Airtable community idea from 2018 is titled "Look-Up from a Look-Up Field", and a 2026 Teable issue puts the cost plainly: "Getting a single computed value from a related table currently requires creating 3-5 intermediate fields across multiple tables." (teable#2900).

The bigger problem is not the extra fields but the records they miss. We generated a synthetic account graph with 50,000 emails, 20,000 GitHub and 15,000 Google accounts, 150,000 platform accounts and recovery emails on 30% of the addresses (the proportions are ours, chosen to show the mechanism, not taken from real data), then counted the emails used on one platform three ways:

MethodEmails counted as usedCompared with the right answer
Follow every link in the direction it depends8,862the right answer
A fixed chain: email ← GitHub ← account2,635misses 70%
Follow every link both ways11,74733% too many

A fixed chain misses every email used through Google, directly or through a recovery address. For "which email is still free", a miss means signing up twice with the same address.

Why links need a direction

The obvious fix, "follow all links, as deep as they go", overshoots. Links in a table tool work both ways: the email lists its GitHub account and the GitHub account lists its email. Walk both ways and you step from an account back into its email, then into that email's other accounts, then into addresses that merely share a recovery email. In the test above that counted a third more emails as used than really were, and an email wrongly marked as used is one you never touch again.

So each link says which side depends on the other. A GitHub account depends on the email it was registered with; a platform account depends on the GitHub account it signs in with; an email depends on its recovery address. "Every account that depends on this email" then has exactly one meaning, and the walk can follow it through any number of tables without wandering off.

Path lookup: pick a table, not a chain

Rowflare's path lookup field works from that idea:

  1. In the Emails table, add a field of type Path lookup.
  2. Under Collect records from, choose Accounts. Add the condition Platform is xxx.
  3. Rowflare lists every link on a path from Emails to Accounts. They are all on by default; untick one to leave it out, for example recovery emails if you do not want them to count. Links you add later that lead to Accounts are walked without editing the field.
  4. Filter the view by the new field is empty. What is left are the emails no xxx account depends on, by any route and at any depth.
Path lookup settings: target table Accounts, condition Platform is xxx, and the five links it walks
The field dialog lists the links the field walks, and says new ones are included.
The Emails view filtered to the two emails with no xxx account by any route
Filtered by "is empty": bob (only used on another platform) and erin (never used).

Each result is a record you can open. Next to it, Why shows the chain that reaches it, such as alice@x.com ← GitHub: alice-dev ← Accounts: alice123, so an answer that crossed four tables can still be checked by eye.

Record view of alice@x.com with its xxx account and the chain that reaches it
Why: the shortest chain from the email to the account.

Links you created before have a direction already: the table a link was made in depends on the table it points to. Change it in the link field's settings ("This record depends on the linked record", "The linked record depends on this record" or "Not a dependency"); both sides of the link change together.

Tables that were never linked

Real bases are not that tidy. Someone adds a Twitter table next month and types each account's email into a text column instead of linking it to Emails. A walk that only follows links cannot see those accounts, so the "is empty" filter would call alice@x.com free while her Twitter account uses it.

You do not have to turn that column into links. Open its settings once and, under Match values in another table, choose Emails and its Address field. From then on, a Twitter record whose email equals an Emails address (ignoring case and spaces around it) is connected to that email, with the same dependency direction a link would have. The value stays plain text you can edit, sort and filter as before; it just becomes clickable, and the path lookup on Emails walks through it without being edited.

The Email column of the Twitter table set to match Emails.Address, with its dependency direction
Set once in the column's settings. Columns you do not set never connect, even if two tables both have a "Status".

Why then names the step: carol@x.com ← Twitter: @carol (same Email) ← Accounts: carol-x. When an address appears twice in Emails, clicking the value lets you pick which record to open; a value with no match says so when you point at it.

Clicking Bob@X.com in the Twitter table lists the two Emails records with that address
Matched values look like links. Two Emails records share this address, so the click asks which one to open.

Matching is not free on storage: each matched column keeps a small index of its values, rewritten only when that column changes. On the same synthetic graph, with the 20,000 GitHub accounts naming their email as text instead of linking it, the filter found the same 8,882 used emails in 115 ms (100 ms with links), and adding 1,000 GitHub rows took about 10% longer than with a plain text column.

Other questions with the same shape

A link from a table to itself works the same way, and loops end: a record reached twice is walked once.

How fast it is, and what it does not do

Path lookups are computed when records are read, from the indexed tables that hold each link, so editing a record costs nothing extra. On the synthetic graph above (about 235,000 records and 200,000 links in one base), on a laptop running the local development server, the "is empty" filter took 138 ms and a page of 100 rows with their path lookup cells 22 ms. The full test record, with the method and every scenario we clicked through, is on the feature page.

Path lookups are in every edition of Rowflare, including the open-source one you deploy to your own Cloudflare account, and in the REST API and the MCP server for AI clients.