# Retrieve/Get data from Firebase

**URL:** <https://community.thunkable.com/t/retrieve-get-data-from-firebase/2159605>\
**Category:** Questions about Thunkable X\
**Created:** [December 1, 2022, 2:18pm UTC](https://community.thunkable.com/t/retrieve-get-data-from-firebase/2159605 "2022-12-01T14:18:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonwriteclubdi](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@simonwriteclubdi](https://community.thunkable.com/u/simonwriteclubdi)\
**Post date:** [December 1, 2022, 2:18pm UTC](https://community.thunkable.com/t/retrieve-get-data-from-firebase/2159605/1 "2022-12-01T14:18:47Z")

</div>

Hi all,

Im trying to learn a bit more about working between thunkable and firebase. Ive managed to work out how to save data to firebase through cloud variable, but im really struggling then pulling that data back in the same way get value pulls it from a data source. Could anyone help me?

Simon

---

<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, 2022, 2:27pm UTC](https://community.thunkable.com/t/retrieve-get-data-from-firebase/2159605/2 "2022-12-01T14:27:03Z")

</div>

It’s generally the exact same method for both (a cloud variable with the path in the format key/subkey/subkey…) but it does depend on your data structure. If you are using arrays (lists), it can be a little trickier to access the values.

What does your Firebase structure look like? And what path (cloud variable name) are you using to save the data?

---

<div class="post-metadata">

**Author:** ![simonwriteclubdi](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@simonwriteclubdi](https://community.thunkable.com/u/simonwriteclubdi)\
**Post date:** [December 1, 2022, 2:50pm UTC](https://community.thunkable.com/t/retrieve-get-data-from-firebase/2159605/3 "2022-12-01T14:50:24Z")

</div>

![Screenshot 2022-12-01 at 14.48.18](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/87efe233a162d72b77ef9330aeca85402d320d44.png)  
 ![Screenshot 2022-12-01 at 14.48.33](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/2/e231699c6610957133fe396655c513e12c578578.jpeg)

These are probably horribly wrong. I just want to have one user create a group and then the second user access that group. Then, certain information will be stored and pulled from here so that players work through the quiz at the same speed.

---

<div class="post-metadata">

**Author:** ![simonwriteclubdi](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@simonwriteclubdi](https://community.thunkable.com/u/simonwriteclubdi)\
**Post date:** [December 1, 2022, 3:26pm UTC](https://community.thunkable.com/t/retrieve-get-data-from-firebase/2159605/4 "2022-12-01T15:26:49Z")

</div>

So ive managed to retrieve some data with your help, thats now making a little more sense. Now i just need to figure out how not to over write all data when users log in and set up groul. I just want them to create a new path  
.

---

<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, 2022, 4:14pm UTC](https://community.thunkable.com/t/retrieve-get-data-from-firebase/2159605/5 "2022-12-01T16:14:12Z")

</div>

You would be setting cloud variable “Game ID/Game ID/[key name]” to a value whenever you want to add data to the group at that key. Creating an object is fine for the first time you create those values but after that, you need to pinpoint specific key property names to set values at those points in your data structure.

---

<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 1, 2023, 4:14pm UTC](https://community.thunkable.com/t/retrieve-get-data-from-firebase/2159605/6 "2023-03-01T16:14:48Z")

</div>

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