# filterByFormula via AirtableAPI

**URL:** https://community.thunkable.com/t/filterbyformula-via-airtableapi/2226104
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [January 17, 2023, 8:20am UTC](https://community.thunkable.com/t/filterbyformula-via-airtableapi/2226104 "2023-01-17T08:20:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sasi.preethag3yh](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sasi.preethag3yh](https://community.thunkable.com/u/sasi.preethag3yh)
#### Post date: [January 17, 2023, 8:20am UTC](https://community.thunkable.com/t/filterbyformula-via-airtableapi/2226104/1 "2023-01-17T08:20:40Z")

</div>

Dear All,

I am trying to retrieve information from 2 different table via filterByFormula, what happens is it gives the right information for the first time , later the datasource blocks automatically updates to the last search i.e recordid and index.

Sharing the blocks :

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/8/3812c2808d3acf34c25b47b059bac5f520d27c58.png)

A)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/2/422d219be805a593ed01e9231cb8e8e719d29774.png)

Another table:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/e/fe4a3c5b61189f4a36c343db737c7a3779617c3d.png)

B)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1a653dbcffeb1a17490dfebd2e548f25cc36bb24.png)  
A & B- are the one where the record id and index gets changed as per the last search though different variables are used to store.

Can’t we use two Airtable API in one app ? Also can we use And & or operator in filterByFormula?

Your valuable assitants and input is highly appreciable.

Regards,  
Sasi Preetha

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [January 17, 2023, 8:47am UTC](https://community.thunkable.com/t/filterbyformula-via-airtableapi/2226104/2 "2023-01-17T08:47:54Z")

</div>

Yes, you can use AND and OR in _filterbyformula_. See this: [The AirTable API (a more efficient way to integrate AirTable with Thunkable) - #22 by jared](https://community.thunkable.com/t/the-airtable-api-a-more-efficient-way-to-integrate-airtable-with-thunkable/1021167/22). And you should be able to access multiple tables using the Airtable API.

The `get value` blocks sometimes do not return updated values. Are you having a problem with the API not returning the correct values or with the data source blocks not returning the correct values?

Are you `app variable featurerecordid1` list items row ids for Airtable? Because typically, you would use an **integer** for the row id. See this: [I want to search in DataSources and get the column ID - #2 by tatiang](https://community.thunkable.com/t/i-want-to-search-in-datasources-and-get-the-column-id/1766281/2)

---

<div class="post-metadata">

### Author: ![sasi.preethag3yh](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sasi.preethag3yh](https://community.thunkable.com/u/sasi.preethag3yh)
#### Post date: [January 17, 2023, 10:23am UTC](https://community.thunkable.com/t/filterbyformula-via-airtableapi/2226104/3 "2023-01-17T10:23:10Z")

</div>

Thank you for your response. Probem with Data source .

app variable featurerecordid1 list gets the row id .

I used 2 table. for one table I used list as recordidloca2 to get the row id and for the second table I used list as featurerecordid1 to get the row id .

Then to retrieve the full details of that row I passed listviewer index .

Actually what happens is though I use 2 different list names and 2 different index the variable name automatically gets updated with the same name which is strange.

Sharing my project link.

[https://x.thunkable.com/copy/319a0b58fa47d60476b8084634627ff0](https://x.thunkable.com/copy/319a0b58fa47d60476b8084634627ff0)

Will try And and or suggested bt Jared and share my input.

---

<div class="post-metadata">

### Author: ![sasi.preethag3yh](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sasi.preethag3yh](https://community.thunkable.com/u/sasi.preethag3yh)
#### Post date: [January 17, 2023, 12:20pm UTC](https://community.thunkable.com/t/filterbyformula-via-airtableapi/2226104/4 "2023-01-17T12:20:54Z")

</div>

Via Or in filterbyformula worked.

sharing the blocks.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/2/c2225e3cf1c26f4be3942ea010e48b9b58d90d45.png)

Thank you so much for your assistance.

---

<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: [April 17, 2023, 12:21pm UTC](https://community.thunkable.com/t/filterbyformula-via-airtableapi/2226104/5 "2023-04-17T12:21:50Z")

</div>

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