# Set a Variable by runtime key, then reference it later

**URL:** https://community.make.com/t/set-a-variable-by-runtime-key-then-reference-it-later/66181
**Category:** Questions
**Tags:** set-variable
**Created:** [January 13, 2025, 8:49am UTC](https://community.make.com/t/set-a-variable-by-runtime-key-then-reference-it-later/66181 "2025-01-13T08:49:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Calum\_MacKenzie](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/calum_mackenzie/32/49631_2.png) [@Calum\_MacKenzie](https://community.make.com/u/Calum_MacKenzie)
#### Post date: [January 13, 2025, 8:49am UTC](https://community.make.com/t/set-a-variable-by-runtime-key-then-reference-it-later/66181/1 "2025-01-13T08:49:52Z")

</div>

I can set a variable in the first module and can use a runtime value as the key

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/2/920b97329c5fd460ba9c056fc188fde21f2769cf.png)

Then in the next module I want that value that was set by referencing the key

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/4/0411ff7decf916a8e53dcd93d22d4d0a0ae6eaa2.png)

I have tried build in get function, not sure if there is something else I could use.

---

<div class="post-metadata">

### Author: ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)
#### Post date: [January 13, 2025, 9:26am UTC](https://community.make.com/t/set-a-variable-by-runtime-key-then-reference-it-later/66181/2 "2025-01-13T09:26:21Z")

</div>

Hey @Calum_MacKenzie

You problem is not clear. Could you please elaborate more on this???

**Regards,**  
_Msquare Automation - Platinum Partner of Make_  
@Msquare_Automation

---

<div class="post-metadata">

### Author: ![Calum\_MacKenzie](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/calum_mackenzie/32/49631_2.png) [@Calum\_MacKenzie](https://community.make.com/u/Calum_MacKenzie)
#### Post date: [January 13, 2025, 10:11am UTC](https://community.make.com/t/set-a-variable-by-runtime-key-then-reference-it-later/66181/3 "2025-01-13T10:11:41Z")

</div>

I set the key of a variable using another variable.  
in a future module i want to use that variable, because it is not simply a hardcoded variable e.g. abc then I could reference it such as {{19.abc}}  
Looking for a way to use the variable by using the value of another variable as the key.

---

<div class="post-metadata">

### Author: ![Calum\_MacKenzie](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/calum_mackenzie/32/49631_2.png) [@Calum\_MacKenzie](https://community.make.com/u/Calum_MacKenzie)
#### Post date: [January 13, 2025, 10:15am UTC](https://community.make.com/t/set-a-variable-by-runtime-key-then-reference-it-later/66181/4 "2025-01-13T10:15:16Z")

</div>

if it were php then  
I know how to do this  
`$tokens["day"]`

but don’t know how to do this within make  
`$tokens[$day]`

---

<div class="post-metadata">

### Author: ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)
#### Post date: [April 13, 2025, 9:16am UTC](https://community.make.com/t/set-a-variable-by-runtime-key-then-reference-it-later/66181/5 "2025-04-13T09:16:49Z")

</div>


