Cloud variables and private Firebase connection doesnt seem to work?

I’m just trying to mess around with saving stuff to Firebase using the cloud variables.

It doesnt seem to want to add data to my private firebase realtime db. If i use it without adding my API key and url, it returns “undefined” instead of the text from the text input box.

What am i doing wrong here? I followed first the Docs, then i saw how Darren did it on Youtube, but i have no luck :slight_smile:

Here is my code and other useful info.


firebase api settings

The problem is that you are trying to save a value to the cloud variable called 0. There is no cloud variable or firebase entry called 0. You need to use the “set cloud variable to name” block and then use a firebase path as the name.

So if your Firebase data looks like this:

-   next
   -   leaf

Then your cloud variable name would be “top/next/leaf”

More info: Replace GET or SAVE Blocks with cloud variables

1 Like

Aha! I see, of course this makes sense. So the “name” block on the set cloud variable block is actually the path, kind of like paths in Windows file exlorer yes?

I will try to use the example in your link :slight_smile:

1 Like


I got it to store a string, but i’m a little bit confused about the Firebase side of things.

What does the “name” and “value” boxes mean, in Firebase? I have worked with SQL databases before, how does this structure compare? Should i consider the “Bottom” to be a row like in SQL or a “leaf” as you said??

Where/how can i see the data entry i made, from thunkable, inside my Firebase database?

Screenshots below for clarity, i guess. Sorry for the many questions lol.


LOL ignore the above, i just realized the Firebase Realtime DB is JSON.

1 Like

If you have a SQL database, could you use something like this in your project?