# Updating only ONE cell using updateRecord?

**URL:** <https://forum.code.org/t/updating-only-one-cell-using-updaterecord/35452>\
**Category:** CS Principles\
**Created:** [November 22, 2021, 2:57pm UTC](https://forum.code.org/t/updating-only-one-cell-using-updaterecord/35452 "2021-11-22T14:57:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ms1](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@ms1](https://forum.code.org/u/ms1)\
**Post date:** [November 22, 2021, 2:57pm UTC](https://forum.code.org/t/updating-only-one-cell-using-updaterecord/35452/1 "2021-11-22T14:57:02Z")

</div>

Hi, can I update only ONE cell from my datable? Or do I need to pass the entire object ?

Datatable columns  
ID  
NAME  
AGE

{id:1, name: “Caroline”, age: 12},  
{id: 2, name: “Harry”, age: 20}  
…

The following sets the AGE column of the ID=1 to undefined?

==\>

{id:1, name: “Peter”, age: **undefined** }  
{id: 2, name: “Harry”, age: 20}

updateRecord(“Test”, {id:1, NAME: “Peter”}, function(record, success) {

});

Thanks.

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [November 22, 2021, 7:45pm UTC](https://forum.code.org/t/updating-only-one-cell-using-updaterecord/35452/2 "2021-11-22T19:45:37Z")

</div>

[Here](https://studio.code.org/docs/applab/updateRecord/) is the documentation for the updateRecord method. If this does not help, please share a link to your code.
