# Storing and changing values to a variable in webhook Action

**URL:** <https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168>\
**Category:** Ask for Help\
**Created:** [February 19, 2025, 12:50pm UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168 "2025-02-19T12:50:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexey\_Baranov1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexey_baranov1/32/43581_2.png) [@Alexey\_Baranov1](https://community.glideapps.com/u/Alexey_Baranov1)\
**Post date:** [February 19, 2025, 12:50pm UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/1 "2025-02-19T12:50:05Z")

</div>

Hi gliders!  
Seems Workflow is a great new feature!  
But can we **to store and change values for internal variables inside webhook Action** by Action Editor?  
Action Editor Interface looks like we can do this, just picking variables as we do it usualy in Layout Editor with the Columns.  
But Glide AI Assistant answers for this Question it’s impossible(  
Is there some experience?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/a/eae8385390431392a6cd3b3aa38a358663b1ffd2.png)

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [February 19, 2025, 2:46pm UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/2 "2025-02-19T14:46:01Z")

</div>

There is no internal variables inside webhook at the moment. If I understand what you mean by internal variables (workflow instance’s variables?).

By the way, that number of depth level! Damn 🤣:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/b/7b90e4992078cfd76cf8e7ea7ff38f260cc64ddc.png)

---

<div class="post-metadata">

**Author:** ![Alexey\_Baranov1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexey_baranov1/32/43581_2.png) [@Alexey\_Baranov1](https://community.glideapps.com/u/Alexey_Baranov1)\
**Post date:** [February 19, 2025, 5:57pm UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/3 "2025-02-19T17:57:46Z")

</div>

@MaximeBaker Thank you, Maxime!  
It’s my first expirience with Workflow using loops, needed for planning Operations, Materials, Work Orders for Work Centres, starting from Customer Orders) Almost MRP 🤯  
Probably too much, will think turnarounds…

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [February 19, 2025, 9:50pm UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/4 "2025-02-19T21:50:08Z")

</div>

Anytime! 😊

---

<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:** [February 20, 2025, 1:22am UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/5 "2025-02-20T01:22:06Z")

</div>

Just curious, what’s your use case for internal variables?

---

<div class="post-metadata">

**Author:** ![Alexey\_Baranov1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexey_baranov1/32/43581_2.png) [@Alexey\_Baranov1](https://community.glideapps.com/u/Alexey_Baranov1)\
**Post date:** [February 25, 2025, 7:04am UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/6 "2025-02-25T07:04:35Z")

</div>

Hi @ThinhDinh 👋  
My usecase is to count of iterations in a feew of nested loops.  
Using the number of current iteration to jump out of a current loop.  
E.g. i need to fill out the schedule of workcentres loading for the currect shift, using a few approaches like as using the most power centres for the most bigger work orders.

---

<div class="post-metadata">

**Author:** ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)\
**Post date:** [February 25, 2025, 9:15pm UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/7 "2025-02-25T21:15:56Z")

</div>

May be i misunderstand your needs, but you already have loop counter and ite switcher on input of every loop

---

<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:** [February 26, 2025, 12:03am UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/8 "2025-02-26T00:03:34Z")

</div>

So your issue is at the moment you don’t have access to the “index” of the loop you’re working on?

Maybe you can pre-number them in your data using some computed columns? Is that an option?

---

<div class="post-metadata">

**Author:** ![Alexey\_Baranov1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexey_baranov1/32/43581_2.png) [@Alexey\_Baranov1](https://community.glideapps.com/u/Alexey_Baranov1)\
**Post date:** [March 7, 2025, 10:42am UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/9 "2025-03-07T10:42:12Z")

</div>

It’s does not works as expected, values not stored in variable. Seeems only way is to store to a table)

---

<div class="post-metadata">

**Author:** ![Alexey\_Baranov1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexey_baranov1/32/43581_2.png) [@Alexey\_Baranov1](https://community.glideapps.com/u/Alexey_Baranov1)\
**Post date:** [March 7, 2025, 10:47am UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/10 "2025-03-07T10:47:04Z")

</div>

Yes, @ThinhDinh, correctly. I need to get the index (number) of which iteration of loop is going.  
And seems you are right, only way for now is to store this value into a table.  
But why you mean a COMPUTED column for this? Explain please, and thank you in advance.

---

<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:** [March 7, 2025, 10:58pm UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/11 "2025-03-07T22:58:59Z")

</div>

Because it allows you to be dynamic and don’t have to add them manually when you have more rows than previously configured.

The steps would be:

- Add a lookup column returning all rowIDs from relevant table/relation/query.
- Add a find element index column, returning the current rowID’s index amongst the lookup above. It will give you a dynamic list of 0-based index.

---

<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:** [March 14, 2025, 10:59pm UTC](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168/12 "2025-03-14T22:59:46Z")

</div>

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