The AirTable API (a more efficient way to integrate AirTable with Thunkable)

Welcome boss.

1 Like

I have already tried so many ways to do
({Num_Paese} = 48 and {Num_Categoria} = 20)
but it doesn’t work.
Either there is a particular syntax (and I was wondering just that) or it is not possible to insert more than one condition.

Have you tried the AND formula that Airtable requires?

It is formatted like this:


If that still doesn’t work, this topic on another forum might shed some light on the issue:

(I’m not really sure how similar that issue is…)

1 Like

Yes, @tatiang
The same advice is in the Airtable community. See this post

In the other hand,

This shows that the numbers are keyed in as text and therefore the condition suggested by @tatiang

would read as


Where do you see that? The filterByFormula block is using text strings for the query parameter but the numbers themselves are just numbers, I believe. I could be wrong!

Also, I think your formulas need double quotes (") if those are in fact strings and not numbers. It may need url encoding as well… I’m not sure.

1 Like

Hey Guy! Check this one out.

This works perfectly for me and returns only females over the age of 28


If you look at his code, he is using a text block for the number not a math block and he says it works.


change the test to {Age}>"5" and see if it still works

1 Like

Thanks Tatiag, the double condition on the query works perfectly now. I couldn’t find anything on Airtable.

1 Like

The two conditions in the query work perfectly. the problem I have now is this: I want to save the data locally, on a list, but it doesn’t work. It does not return anything. Ideas?

Can you post the full JSON response as text? That way I can help you with parsing it.

I’ve always checked to see if a property is null rather than empty. I’m not sure if that might be causing a problem.

no. the data must be presented in a DVL, I thought I would pass them locally first. To get a faster answer. I err?
The first time I coded it worked, now it doesn’t. I didn’t check if null instead of empty, but on label it works, on list it doesn’t.

Without knowing how the JSON is structured, I can’t tell if the blocks you used are correct or not. But I looked at my own Airtable API sample JSON response and I believe that your property blocks are correct. Try something simpler: in the then do section, set the value of a label to the get property blocks to see if that works. Leave out the if/do block and list blocks for now.

You also should always check the value of the green error block. You can assign it to a label to make sure you’re not getting an error from the API. What is the value of that block when you test the project?

Also, is app variable Nome_List initialized or set to an empty list? It should be before you start adding items to it.

1 Like

Probably the problem is on the end of the table, how do you text null in your opinion?
I did some testing but I can’t solve.

You need to simplify things first. Are you able to assign a label to the get property blocks and see a value from your Airtable database? That should be your first step.

For example, can you display this?

If so, yay! If not, please post a screenshot of how you are trying to display that value.

By the way, here’s another way to get the same value:

Everything works if I don’t scroll the whole table. In fact, I value well the list variable that I created. But if I take the loop over the table data it doesn’t give me any results. So I have to be able to test the end of the table for good. But I don’t know how to do it.

If you are using a loop, share a screenshot of that. I do see a loop in a post above but I don’t know if it’s the same set of blocks.

I also can’t see in that screenshot how you are using the loop index value (e.g. 1 to 10). So I would need to see that.

1 Like

The table has 96 records, if I set the cycle to 100 I have no result.
In the screenshot I set it to 50 and Label14 shows me the fields.
Immediately after cycle to fill the DVL and nothing, the load icon spins indefinitely.
So two problems, one I can’t understand the table end, two I can’t fill the DVL. Yet it seems such an easy thing.

1 Like

This code is meant to break and not to work properly.

In the first loop of 1 - 50 you are filling the list using in list ..... set # this only works for a predefined list. This means if your list has 15 items it will work OK until it reaches round 16 and the code will break because you are trying to set a value outside of the size of the list.

In the second loop of 1 - 50 you are trying to change the text of the a column in a DVL by passing the numbers 1 - 50 which is not recognized by the DVL. The way the DVL is set is to only recognize the record ID not the sequential numbers.

what’s the solution?

1 Like