# Update cloud variable list

**URL:** <https://community.thunkable.com/t/update-cloud-variable-list/2509700>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [July 17, 2023, 5:06pm UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700 "2023-07-17T17:06:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![germanydrivingschool](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@germanydrivingschool](https://community.thunkable.com/u/germanydrivingschool)\
**Post date:** [July 17, 2023, 5:06pm UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/1 "2023-07-17T17:06:46Z")

</div>

Hi everyone,

i want to update a cloud variable keeping old data intact.

whenever some one buy a course. one more key pair should be added below course 5 containing value like purchased date and validity showed in course 2.  
can anyone please help me  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/4/64357cd899191bc8112c31aa5726113373dbda3f.png)

---

<div class="post-metadata">

**Author:** ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)\
**Post date:** [July 18, 2023, 12:52am UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/2 "2023-07-18T00:52:27Z")

</div>

@germanydrivingschool, this is very easy, you have to just add object normally,  
like lets suppose you have to add course X,  
go to the block set cloud variable and give path to `A\B\..\12\brought_courses\course X` to `Your object with Date and validity`  
By using this method, your other data will be safe, and not deleted.

---

<div class="post-metadata">

**Author:** ![germanydrivingschool](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@germanydrivingschool](https://community.thunkable.com/u/germanydrivingschool)\
**Post date:** [July 18, 2023, 12:27pm UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/3 "2023-07-18T12:27:20Z")

</div>

thanks @ak_coder

i am not able to set the property. here are the blocks

can you guide me what am i doing wrong here.

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

---

<div class="post-metadata">

**Author:** ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)\
**Post date:** [July 19, 2023, 12:06pm UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/4 "2023-07-19T12:06:30Z")

</div>

Thanks @germanydrivingschool, for ss,  
Ok, so after analyzing the code and result, i found that you have entered wrong path of object, and the set property \_\_, in the blank space you have to fill your property name like date or validity.  
If this not solved your problem, then please send more code screenshots or link.

---

<div class="post-metadata">

**Author:** ![germanydrivingschool](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@germanydrivingschool](https://community.thunkable.com/u/germanydrivingschool)\
**Post date:** [July 19, 2023, 2:04pm UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/5 "2023-07-19T14:04:44Z")

</div>

Hi @ak_coder  
thanks for your reply. i tried many ways

the firebase contains a list in the values are captured.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/0/40631e70ba06331e92cfa3dec193bbecab799db0.png)

i have tried to have it like it can represent a list

[0].uid  
0.uid  
uid. 0:get\_properties object variable

when i execute set propery 1 of object. it creates a key value pair under the cloud variable.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/454bfeef4ad041f1e7bb6c21704066c61014ab26.png)

may be if you tell me what should i have to mention in set property value that i can try

thanks for all the efforts  
s

---

<div class="post-metadata">

**Author:** ![germanydrivingschool](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@germanydrivingschool](https://community.thunkable.com/u/germanydrivingschool)\
**Post date:** [July 19, 2023, 5:38pm UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/6 "2023-07-19T17:38:37Z")

</div>

hi all, can any one please help me to know how can i update a nested cloud variable value in a list.

a block code how to update date or uid…

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/d/2d570db91a586e124686be93cdaac5b7f72cf535.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:** [July 20, 2023, 6:59am UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/7 "2023-07-20T06:59:37Z")

</div>

Try this:

Set cloud variable “premium\_members[6]/bought\_courses/course1/date” to “test”

---

<div class="post-metadata">

**Author:** ![germanydrivingschool](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@germanydrivingschool](https://community.thunkable.com/u/germanydrivingschool)\
**Post date:** [July 20, 2023, 7:03am UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/8 "2023-07-20T07:03:55Z")

</div>

> [@tatiang](#):
>
> premium\_members[6]/bought\_courses/course1/date

Hi @tatiang

many thanks for the reply. i have tried both ways

with / and also with “.” but not working

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/8/b8143dfcf295eee09f8cc14250a243cde1f5b9c4.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:** [July 20, 2023, 7:06am UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/9 "2023-07-20T07:06:29Z")

</div>

I didn’t say to set the property of an object. Use the set cloud variable block at the bottom of the Variables drawer:

![Screenshot 2023-07-20 at 12.05.31 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/3/833adb2a47ee917aed7029b51af4511ae3e21ce3.png)

Replace “name” with the path that I provided above.

**Be sure to back up your Firebase database before testing!**

---

<div class="post-metadata">

**Author:** ![germanydrivingschool](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@germanydrivingschool](https://community.thunkable.com/u/germanydrivingschool)\
**Post date:** [July 20, 2023, 7:12am UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/10 "2023-07-20T07:12:20Z")

</div>

once again many thanks for your quick response

i tried to do as you have mentioned

but it didn’t work

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

---

<div class="post-metadata">

**Author:** ![germanydrivingschool](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@germanydrivingschool](https://community.thunkable.com/u/germanydrivingschool)\
**Post date:** [July 20, 2023, 7:15am UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/11 "2023-07-20T07:15:21Z")

</div>

and now its working.

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

i don’t know why its not considering it as a list.

i have created a list and updating cloud variable as a list insert at the end everytime i make a new entry of premium user

---

<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:** [October 18, 2023, 7:15am UTC](https://community.thunkable.com/t/update-cloud-variable-list/2509700/12 "2023-10-18T07:15:35Z")

</div>

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