# Loop several tables with a function

**URL:** <https://community.thunkable.com/t/loop-several-tables-with-a-function/4108071>\
**Category:** Questions about Thunkable X\
**Created:** [December 15, 2025, 4:52pm UTC](https://community.thunkable.com/t/loop-several-tables-with-a-function/4108071 "2025-12-15T16:52:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert.lundelli4pcye](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@robert.lundelli4pcye](https://community.thunkable.com/u/robert.lundelli4pcye)\
**Post date:** [December 15, 2025, 4:52pm UTC](https://community.thunkable.com/t/loop-several-tables-with-a-function/4108071/1 "2025-12-15T16:52:13Z")

</div>

Hi

I have a search function that works fine for my Airtable database. I only have one table in the database as for now.  
But I will need alot of tables since I am working on a inventory app  
Can I use a function to create a loop that loops through every table when the user clicks search?  
This is the setup so far

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/7/179e7c72c9832659b786596803e5b404907bd286.jpeg)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 15, 2025, 5:12pm UTC](https://community.thunkable.com/t/loop-several-tables-with-a-function/4108071/2 "2025-12-15T17:12:53Z")

</div>

Hi @robert.lundelli4pcye  
To go through multiple tables, you will need multiple loops.

---

<div class="post-metadata">

**Author:** ![robert.lundelli4pcye](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@robert.lundelli4pcye](https://community.thunkable.com/u/robert.lundelli4pcye)\
**Post date:** [December 15, 2025, 5:19pm UTC](https://community.thunkable.com/t/loop-several-tables-with-a-function/4108071/3 "2025-12-15T17:19:37Z")

</div>

So no possibility to create a function for this?

Maybee easier to link tables inside Airtable.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 15, 2025, 5:22pm UTC](https://community.thunkable.com/t/loop-several-tables-with-a-function/4108071/4 "2025-12-15T17:22:30Z")

</div>

@robert.lundelli4pcye It is not possible to use a function because you can’t set the table names dynamically.  
You could use Web API blocks or use the existing blocks multiple times.

---

<div class="post-metadata">

**Author:** ![robert.lundelli4pcye](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@robert.lundelli4pcye](https://community.thunkable.com/u/robert.lundelli4pcye)\
**Post date:** [December 15, 2025, 5:28pm UTC](https://community.thunkable.com/t/loop-several-tables-with-a-function/4108071/5 "2025-12-15T17:28:59Z")

</div>

Ok.

I will try to link the tables in Airtable and use only one loop.

Lets see how that work 🙂

---

<div class="post-metadata">

**Author:** ![robert.lundelli4pcye](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@robert.lundelli4pcye](https://community.thunkable.com/u/robert.lundelli4pcye)\
**Post date:** [December 16, 2025, 7:43am UTC](https://community.thunkable.com/t/loop-several-tables-with-a-function/4108071/6 "2025-12-16T07:43:02Z")

</div>

linked DB did the trick

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 16, 2026, 7:43am UTC](https://community.thunkable.com/t/loop-several-tables-with-a-function/4108071/7 "2026-03-16T07:43:50Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
