# How to make a "proper" fetch/workflow and save the result into variables?

**URL:** <https://community.weweb.io/t/how-to-make-a-proper-fetch-workflow-and-save-the-result-into-variables/7646>\
**Category:** Ask us anything\
**Created:** [March 19, 2024, 5:34pm UTC](https://community.weweb.io/t/how-to-make-a-proper-fetch-workflow-and-save-the-result-into-variables/7646 "2024-03-19T17:34:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![IKR](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ikr/32/8200_2.png) [@IKR](https://community.weweb.io/u/IKR)\
**Post date:** [March 19, 2024, 5:34pm UTC](https://community.weweb.io/t/how-to-make-a-proper-fetch-workflow-and-save-the-result-into-variables/7646/1 "2024-03-19T17:34:29Z")

</div>

Hello (can i say again 🙂),

i want to fetch three tables from Xano and store each in a seperate object variable.  
Which are in my case “xgetCategoriesSaved”, “xgetProductsSaved” & “xgetSubcategoriesSaved”.  
All those variables will be fetched on page load at a certain page, so i dont need to fetch every time if a user is viewing a product.

What i did is creating a workflow like this:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/4/48700287e255e1f5e90cdf0aa683fee6ac5c7913.png)

I was even trying to make it without the fetching first, just a change variable and adding the source as the fetch. But both ways seems not to work. The variables contain empty.

How it should work actually?

---

<div class="post-metadata">

**Author:** ![IKR](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ikr/32/8200_2.png) [@IKR](https://community.weweb.io/u/IKR)\
**Post date:** [March 19, 2024, 6:28pm UTC](https://community.weweb.io/t/how-to-make-a-proper-fetch-workflow-and-save-the-result-into-variables/7646/2 "2024-03-19T18:28:54Z")

</div>

Thats the only way that works, with 2x query.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/2c27e47dd9518eedcb6803f4fa03f930274994bf.png)

---

<div class="post-metadata">

**Author:** ![IKR](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ikr/32/8200_2.png) [@IKR](https://community.weweb.io/u/IKR)\
**Post date:** [March 19, 2024, 7:07pm UTC](https://community.weweb.io/t/how-to-make-a-proper-fetch-workflow-and-save-the-result-into-variables/7646/3 "2024-03-19T19:07:03Z")

</div>

Even in the published version its not working, but the funny thing is that it happen suddenly.  
I am not sure what WeWeb is doing out there, but if you dont want people to work and use your tool, you can just announce it.  
In the other case you can as well announce that you are working on something.

Even some of my changes are suddenly reset, crazy.

---

<div class="post-metadata">

**Author:** ![Zacharyb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/zacharyb/32/3567_2.png) [@Zacharyb](https://community.weweb.io/u/Zacharyb)\
**Post date:** [March 20, 2024, 12:01am UTC](https://community.weweb.io/t/how-to-make-a-proper-fetch-workflow-and-save-the-result-into-variables/7646/4 "2024-03-20T00:01:46Z")

</div>

Hello ! I’m not an user of Xano, but did try to use WeWeb operators ?  
Or even just the filter feature ?

---

<div class="post-metadata">

**Author:** ![IKR](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ikr/32/8200_2.png) [@IKR](https://community.weweb.io/u/IKR)\
**Post date:** [March 20, 2024, 10:17am UTC](https://community.weweb.io/t/how-to-make-a-proper-fetch-workflow-and-save-the-result-into-variables/7646/5 "2024-03-20T10:17:53Z")

</div>

Thanks @Zacharyb

No but it was working before like this, but i will recheck one more time to make sure

---

<div class="post-metadata">

**Author:** ![IKR](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ikr/32/8200_2.png) [@IKR](https://community.weweb.io/u/IKR)\
**Post date:** [March 20, 2024, 10:35am UTC](https://community.weweb.io/t/how-to-make-a-proper-fetch-workflow-and-save-the-result-into-variables/7646/6 "2024-03-20T10:35:46Z")

</div>

There is something wrong. And i am sure that it was working before, as well other workflows not working anymore correctly. Even if i publish to production.

Update:

I found it, for my needs i really need to fetch first on app load the collections i need, and than i can do it on page load.  
That works.
