# Call API sends old data

**URL:** <https://community.glideapps.com/t/call-api-sends-old-data/67935>\
**Category:** Report a Bug\
**Created:** [November 18, 2023, 9:24pm UTC](https://community.glideapps.com/t/call-api-sends-old-data/67935 "2023-11-18T21:24:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joonas\_Tahtinen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joonas_tahtinen/32/38673_2.png) [@Joonas\_Tahtinen](https://community.glideapps.com/u/Joonas_Tahtinen)\
**Post date:** [November 18, 2023, 9:24pm UTC](https://community.glideapps.com/t/call-api-sends-old-data/67935/1 "2023-11-18T21:24:20Z")

</div>

Mac OS, Brave browser & Safari browser

**Describe the bug:**

- I have noticed this in few of my apps. When making a API call (action) that has a column value in the payload (user specific column in this case) the first time everything works fine. If I change the value inside the column, the app UI shows the new data, but sends the old data from the column. It takes maybe a minute or few for the payload to update.

**Expected behavior:**

- The data that is sent to the call API should be upto date with the UI.

**How to replicate:**

- Make an API call that has a user specific column value in the payload.
- Then edit the column value
- Right away do another api call
- Check what payload was sent.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [November 19, 2023, 3:14am UTC](https://community.glideapps.com/t/call-api-sends-old-data/67935/2 "2023-11-19T03:14:43Z")

</div>

@Loqode this sounds like the same issue you were having. Did you ever get that sorted?

---

<div class="post-metadata">

**Author:** ![Loqode](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/loqode/32/50217_2.png) [@Loqode](https://community.glideapps.com/u/Loqode)\
**Post date:** [November 20, 2023, 12:27am UTC](https://community.glideapps.com/t/call-api-sends-old-data/67935/3 "2023-11-20T00:27:36Z")

</div>

Never managed to get to the bottom of it unfortunately! Ended up using Webhook instead.

**But**!

A temporary solution I discovered was to simply display the body of the Call API request somewhere on screen (e.g. in a text component). When the JSON payload was displayed on screen, the data was up-to-date. When the payload wasn’t displayed on screen, it was sending data that appeared to be “1 update behind” what it should have been.

So a somewhat _hacky_ way to resolve this would be to display the json payload (body of the request) on screen (e.g. at the bottom of the page) in a rich text component and set the colour of the text to the colour of the background so it’s technically still displaying on screen but remains somewhat invisible. And if it’s a large request you can reduce the font-size etc to reduce the space that the rich text component uses.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 20, 2023, 4:17am UTC](https://community.glideapps.com/t/call-api-sends-old-data/67935/4 "2023-11-20T04:17:45Z")

</div>

Or maybe use a span class but set the height to 0. As long as the content of that block is updated, I think it should work.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [May 18, 2024, 4:18am UTC](https://community.glideapps.com/t/call-api-sends-old-data/67935/5 "2024-05-18T04:18:12Z")

</div>

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