# How do I nest objects with variable values?

**URL:** <https://community.thunkable.com/t/how-do-i-nest-objects-with-variable-values/2742684>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, beginner, help\
**Created:** [December 7, 2023, 10:49pm UTC](https://community.thunkable.com/t/how-do-i-nest-objects-with-variable-values/2742684 "2023-12-07T22:49:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![meko137](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@meko137](https://community.thunkable.com/u/meko137)\
**Post date:** [December 7, 2023, 10:49pm UTC](https://community.thunkable.com/t/how-do-i-nest-objects-with-variable-values/2742684/1 "2023-12-07T22:49:55Z")

</div>

Hello,

sorry but I need your help. I searched and tried for hours and don’t get it (if it’s even possible?!)

I just want to nest my objects whose are getting saved into firbase with a variable name…

I want to have a directornary in my database like this: User → [USER\_EMAIL] → Properties…

This is my code:

 ![1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/b/fb9e77ac1ee4fc06af6edde6f830abfa75fe2ca3.png)

And I know it work like this:

 ![2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/e/7e1193f336a2a7d31884be772c512bc364691803.png)

But HOW did I get the object field [USER\_EMAIL] filled with the users email address, the input email value?

It is unfortunately not possible to connect a block into this field… just static text

Can someone help me out here?

---

<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:** [December 8, 2023, 6:28am UTC](https://community.thunkable.com/t/how-do-i-nest-objects-with-variable-values/2742684/2 "2023-12-08T06:28:52Z")

</div>

When working with Firebase, you need to use _cloud_ variables:

set cloud variable [path to user email] to create object with fields Profilbild, etc.

The path to the user email is usually something like /users/userid/email\_address where userid is the value from the sign in block.

---

<div class="post-metadata">

**Author:** ![meko137](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@meko137](https://community.thunkable.com/u/meko137)\
**Post date:** [December 8, 2023, 10:52am UTC](https://community.thunkable.com/t/how-do-i-nest-objects-with-variable-values/2742684/3 "2023-12-08T10:52:54Z")

</div>

Hi tatiang,

thanks for your fast reply.

I know about the cloud variable and I already had this before and the app variable is only there because I had tried something and forgot to set it back to cloud.

My question/problem is still how do I get each individual userID or email\_address into the Users section?

What block structure do I need to build to organize this?

For now it is getting saved in firebase as: [USERS\_EMAIL\_ADDRESS] → Properties…

But what I need to do that I get the directonary: Users → [USERS\_EMAIL\_ADDRESS] → Properties…

---

<div class="post-metadata">

**Author:** ![meko137](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@meko137](https://community.thunkable.com/u/meko137)\
**Post date:** [December 8, 2023, 11:23am UTC](https://community.thunkable.com/t/how-do-i-nest-objects-with-variable-values/2742684/4 "2023-12-08T11:23:21Z")

</div>

Ok I found it out… sorry I’m new and didn’t know that I can use the “join” block to make it work

It looks like this:

 ![1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/d/0d2c1e64ea68107bcd5d495905a82488b42b11fd.png)

Topic closed

---

<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:** [March 7, 2024, 11:23am UTC](https://community.thunkable.com/t/how-do-i-nest-objects-with-variable-values/2742684/5 "2024-03-07T11:23:43Z")

</div>

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