# Different behavior from Web App preview To Web App Published in Airtable API create new rows

**URL:** <https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846>\
**Category:** Questions about Thunkable X\
**Created:** [January 13, 2022, 3:59pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846 "2022-01-13T15:59:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![aiasp](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@aiasp](https://community.thunkable.com/u/aiasp)\
**Post date:** [January 13, 2022, 3:59pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846/1 "2022-01-13T15:59:07Z")

</div>

Hello, I have a function that create new rows in Airtable db, getting data from a list I previously populated.

Well, If I run the app into the editor, using Web preview, it works correctly and Create 1 row for each instance,

but

if I run the app using Web App Publish or iOs download, it create 2 rows for each instance and not 1.

hope someone will help me thanks

---

<div class="post-metadata">

**Author:** ![aiasp](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@aiasp](https://community.thunkable.com/u/aiasp)\
**Post date:** [January 13, 2022, 3:59pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846/2 "2022-01-13T15:59:52Z")

</div>

![Schermata 2022-01-13 alle 16.55.04](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/e/be035c0882903a88ddb08641749f4aa8bfb107d2.png)

---

<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 13, 2022, 4:36pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846/3 "2022-01-13T16:36:44Z")

</div>

What is the length of the list `app variable OggetoLista` when you preview the project on various devices and in a browser?

---

<div class="post-metadata">

**Author:** ![aiasp](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@aiasp](https://community.thunkable.com/u/aiasp)\
**Post date:** [January 13, 2022, 5:17pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846/4 "2022-01-13T17:17:39Z")

</div>

from 5 to 20 objects

---

<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 13, 2022, 5:31pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846/5 "2022-01-13T17:31:31Z")

</div>

And what do the blocks look like where you are calling the CaricaGiocatori function?

If it’s not confidential, can you post the full JSON response as text?

---

<div class="post-metadata">

**Author:** ![aiasp](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@aiasp](https://community.thunkable.com/u/aiasp)\
**Post date:** [January 13, 2022, 9:20pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846/6 "2022-01-13T21:20:47Z")

</div>

response is correct in both cases, 3 records in this case for both Web App and Live App

 ![Schermata 2022-01-13 alle 22.07.52](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/4/64fe370ce613ec1c42e54bb65ab55ca5ab583ffd.png)  
 ![Schermata 2022-01-13 alle 22.08.36](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/d/cdec1111d3fd1046261fa96a6bc978ab58488a1d.png)  
 ![Schermata 2022-01-13 alle 22.17.52](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/4/7440dce6d2374bf1f77c4249d7907114aa50a3dc.png)

but in Web App Published it writes 2 times the new records

![Schermata 2022-01-13 alle 21.01.55](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/992fe6ac1e7fcbda2aac8c7b73461d8bdb81b0fc.png)  
 ![Schermata 2022-01-13 alle 21.03.05](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/6/d636b0fa985d1f96e23df4682cd0fc869adfa646.png)

Function is called one time from other blocks

other ideas ? thanks

---

<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 13, 2022, 9:40pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846/7 "2022-01-13T21:40:44Z")

</div>

I actually need the response formatted as text, not as screenshots. But I’ll take your word that it’s 3 records.

I’m not sure why you’re hiding the other blocks. I can’t help you without seeing how the function is called.

---

<div class="post-metadata">

**Author:** ![aiasp](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@aiasp](https://community.thunkable.com/u/aiasp)\
**Post date:** [January 13, 2022, 11:05pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846/8 "2022-01-13T23:05:23Z")

</div>

OMG ! your words helped me to discover the issue

I called the function from START and from OPEN screen blocks.

Now I removed that call from OPENS and it runs only 1 time !!! I love u !

But Why when I used web preview it worked the same only one time ? What is the MAIN different from OPEN and START ?

Thank you !!

Guido from Italy

---

<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 13, 2022, 11:38pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846/9 "2022-01-13T23:38:01Z")

</div>

Guido,

When screen _starts_ → run this code the **first time** the screen opens

When screen _opens_ → run this code **every time** the screen opens

I know there is a bug with these blocks but I thought it only applied to Android devices.

---

<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 13, 2022, 11:38pm UTC](https://community.thunkable.com/t/different-behavior-from-web-app-preview-to-web-app-published-in-airtable-api-create-new-rows/1671846/10 "2022-04-13T23:38:34Z")

</div>

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