Rows¶
Get Rows¶
listRows
Example
getRow
Example
Add Row(s)¶
appendRow
Example
insertRow
Example
batchAppendRows
Example
const rows_data = [{
'Name': 'test batch',
'content': 'Yes'
}, {
'Name': 'test batch',
'content': 'Yes'
}, {
'Name': 'test batch',
'content': 'Yes'
}]
// Whether to use the default value set in the table column.
// If set to true, the default value will be used if the column is not specified in row_data.
// apply_default is set to false by default.
await base.batchAppendRows('Table6', rows_data, apply_default = true)
Update Row¶
updateRow
Example
batchUpdateRows
Example
const updates_data = [
{
"row_id": "fMmCFyoxT4GN5Y2Powbl0Q",
"row": {
"Name": "Ranjiwei",
"age": "36"
}
},
{
"row_id": "cF5JTE99Tae-VVx0BGT-3A",
"row": {
"Name": "Huitailang",
"age": "33"
}
},
{
"row_id": "WP-8rb5PSUaM-tZRmTOCPA",
"row": {
"Name": "Yufeng",
"age": "22"
}
}
]
await base.batchUpdateRows('Table1', rows_data=updates_data)
Delete Row(s)¶
deleteRow
Example