# I don't know how to bring back this data

**URL:** <https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708>\
**Category:** Questions about Thunkable X\
**Created:** [December 1, 2023, 11:56am UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708 "2023-12-01T11:56:04Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 1, 2023, 11:56am UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/1 "2023-12-01T11:56:04Z")

</div>

Hi I’m doing this code and if you can answer me by today still. I’m saving this data in firebase but I have no idea how do I bring it back to another screen, I’m going to make a screen where the person’s profile will be and there wi

 ![Captura de tela 2023-11-30 193614](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/7/67a173c36af85cf6e64258d90afa6aca278a839b.png)  
ll be their information. Help me, I don’t know how to bring back this data.

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [December 1, 2023, 3:28pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/2 "2023-12-01T15:28:41Z")

</div>

Hi @luiz.primaz2ddpyu, welcome to Thunkable! 🎉

Be sure to check out our posts about [How to ask Great Questions v2.0](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983/1) and our [Community Guidelines](https://community.thunkable.com/t/community-guidelines/78/8) as you get started.

To answer your question:

You can retrieve that data in the same way you are setting the cloud variable but you also want to make sure you can grab each part of that object so you can use the [get property of object block](https://docs.thunkable.com/blocks/blocks/objects#reading-property-values-of-an-object).  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/9/e93334c4fbdfe3988112b9cb8454ae42f12e2fc9.png)

The object is the cloud variable itself and the property is either Nome, Sobrenome, CPF, or Email.

 ![Screenshot 2023-12-01 at 10.28.18 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/1/e1e3d6ff44d7f843fe92b23724fd9575619f99fd.png)

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 1, 2023, 6:49pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/3 "2023-12-01T18:49:41Z")

</div>

Hi thanks for replying to me, but I still don’t understand, I’m new to this programming area if you can explain me again… I appreciate it, I’ll send you some more information below:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/c/1c5a9419f52b40e26a76ea1976c862399afd4a32.png)

I tried to put the information in the code you sent me but I couldn’t, I’m new to programming.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/5/65ab0f40697090777b95c386c6af380841ed5afc.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/4/24a1d73b4bf1fb20a03b444016bbae158bfb6b89.png)

I hope this information can help you help me, see you later and thank you.

---

<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 1, 2023, 11:36pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/4 "2023-12-01T23:36:54Z")

</div>

You have “CPF” twice so you’re actually getting the value at …/CPF/CPF which doesn’t exist. You can either delete the `get property` block and just use the full Firebase path that you have (you might need to remove the “/” after “/CPF”) – that’s the way I access Firebase values from Thunkable – or you can just delete this block:

![1c5a9419f52b40e26a76ea1976c862399afd4a32_2_690x208](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/7/6743cdf7dbb153c54cdf77fd10d7ba278e84587c.png)

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 1, 2023, 11:58pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/5 "2023-12-01T23:58:21Z")

</div>

Did you mean that? It’s giving results as “null”

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/2/62b73219de49c854f954d72d0d429fd451ff23bf.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/f/9ff4fa4e0ca0b4f08f44351196d6f0ab5ec2f586.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/d/2d0236a11ec795512058d6269664c5f923f24319.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/c/8cb2a70b20d3556b862813ff2763748f39f74de8.png)

All of them result in “null”

---

<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 2, 2023, 3:24am UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/6 "2023-12-02T03:24:34Z")

</div>

What is the value of `app variable userid` when you display it in a label or text input by itself? Text input’s are helpful because you can copy from them and paste here on the forums.

Would you be able to export your Firebase data as JSON and post it here (if it’s not confidential)? If I could see it, I could provide the correct blocks for you. But based on what you shared already, the blocks you used should work so there must be something else going on. I would also try removing the leading “/” in front of “/usuarios/” to change it to “usuarios/”

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 2, 2023, 3:29pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/7 "2023-12-02T15:29:57Z")

</div>

Of course, here’s the JSON:

```auto
{
  "usuarios": {
    "cristina@admin^br": {
      "CPF": "0987512343",
      "Email": "cristina@admin.br",
      "Nome": "cristina",
      "Sobrenome": "salomao"
    },
    "luizeduardo@admin^br": {
      "CPF": "00000000009",
      "Email": "luizeduardo@admin.br",
      "Nome": "Luiz",
      "Sobrenome": "Eduardo"
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [December 2, 2023, 4:31pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/8 "2023-12-02T16:31:23Z")

</div>

You set your userID to a Firebase ID, but you saved the object under an email.

Example:

You saved it as this:  
“luiz^primaz@aluno^senai^br”: {  
“CPF”: “00000000009”,  
“Email”: “luizeduardo@admin.br”,  
“Nome”: “Luiz”,  
“Sobrenome”: “Eduardo”

But you’re trying to retrieve it with this:  
},  
Htfc456ghd663g94Fhdsbnet…(A LONG STRING): {  
“CPF”: “00000000009”,  
“Email”: “luizeduardo@admin.br”,  
“Nome”: “Luiz”,  
“Sobrenome”: “Eduardo”

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [December 2, 2023, 4:36pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/9 "2023-12-02T16:36:21Z")

</div>

Your data is also insecure. You shouldn’t be allowed to write to the database until after you have created an authorized user.

> [@Authenticating users with Firebase (with video tutorial)](https://community.thunkable.com/t/authenticating-users-with-firebase-with-video-tutorial/2687824):
>
> Video Tutorial In this video tutorial, you’ll learn how to use Firebase to authenticate your users and allow them to sign up and sign in to your app: [[How to Build User Sign Up, Sign In, and Authentication with Firebase in Thunkable] ](https://www.youtube.com/watch?v=aFL8iQCmPkM) Template App Click: [Firebase Authentication Tutorial TEMPLATE](https://x.thunkable.com/projectPage/653c261e53bf2181c510bad2) Click Copy Project in the upper right. Associated Thunkable Doc [User Sign Up, Sign In, and Authentication with Firebase](https://docs.thunkable.com/blocks/app-features/sign-in/sign-in) Let the community know…. Share examples of your own sign up/i…

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 2, 2023, 5:33pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/10 "2023-12-02T17:33:51Z")

</div>

Ok I understand that I was trying to look for something in the wrong place, but now I’m having another problem, I’m trying to save the user’s UID but it’s saving as null:

```auto
{
  "usuarios": {
    "null": {
      "CPF": "00000000009",
      "Email": "luiz@admin.br",
      "Nome": "Luiz",
      "Sobrenome": "Eduardo"
    }
  }
}

```

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/1/e1e6ab6fa032186882fca67c800bdb5c0c386b3c.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/1/6175d5ac382679873c9e2c2b567c831a504b52e2.png)

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [December 2, 2023, 5:43pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/11 "2023-12-02T17:43:06Z")

</div>

Try a different folder structure  
{  
“usuarios”: {  
“Firebase ID 1”: {  
“CPF”: “0987512343”,  
“Email”: “cristina@admin.br”,  
“Nome”: “cristina”,  
“Sobrenome”: “salomao”  
},  
“Firebase ID 2”: {  
“CPF”: “00000000009”,  
“Email”: “luizeduardo@admin.br”,  
“Nome”: “Luiz”,  
“Sobrenome”: “Eduardo”  
}  
}  
}

Rules Settings:  
Something like this (correct me if I’m wrong)

{“rules”:{“usuarios”:{“$uid”:{“.read”:“auth.uid == $uid”,“.write”: “auth.uid == $uid”}}}}

Sign in screen example:  
 ![advanced block](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/a/4a36cbda22d4c2c351d6056566accdbe1eacd85c.png)

 ![userLogin_signup](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/2/f27b00189abba1725a33b619981d8c0bd88d36db.png)

Home Screen:  
Retrieve your info

 ![Welcome](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/6/a6b85c4d2fd5360ba6f5d1335a88f21d7282644b.png)

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 2, 2023, 6:55pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/12 "2023-12-02T18:55:20Z")

</div>

Now I think it’s going to work, there’s only one catch, I don’t know where to find this purple block, I can’t see it…

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/7/47bfe7e4bf2537ecc9cecd6e7acb43d57cf16bc7.png)

---

<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 2, 2023, 7:36pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/13 "2023-12-02T19:36:39Z")

</div>

You can right click on certain blocks and choose “Show advanced block”

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 2, 2023, 9:14pm UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/14 "2023-12-02T21:14:44Z")

</div>

I managed to do it, thank you all

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/f/8f19ad6966ce70518584edf2319f7b2bad305b4b.png)

---

<div class="post-metadata">

**Author:** ![keerthieva68r](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@keerthieva68r](https://community.thunkable.com/u/keerthieva68r)\
**Post date:** [December 8, 2023, 6:42am UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/15 "2023-12-08T06:42:25Z")

</div>

Hello everyone! I recently facing an issue in Thunkable while accessing values from Firebase. I had mistakenly included “CPF” twice in my Firebase path, resulting in an invalid path and error.

However, after reading a helpful reply on the forum, I found the solution to my problem. I learned that I can either remove the “get property” block and utilize the full correct Firebase path, or simply delete the specific block causing the error. Thank You for your guidance[.](https://njmcdirect.support/)

---

<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, 6:43am UTC](https://community.thunkable.com/t/i-dont-know-how-to-bring-back-this-data/2733708/16 "2024-03-07T06:43:23Z")

</div>

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