Skip to main content

Update Record

Update a new Record in a specified Table.

update_records(tableId: ID, id: ID, body: SimpleRecord, options?:  UpdateRecordOptions ): Promise<SimpleRecord | undefined>;
Parameter NameTypeDescription
tableIdstringThe Id of the Table to Update the record in.
idstringA record Id.
optionsobjectRecord update options.

Update Record Options

Optional parameters for record update.

interface RecordOptions {
skipValidation?: boolean;
}
Example Script - Update Record

<!--update_records(appId: ID, id: ID, body: SimpleRecord, options?: UpdateRecordOptions ): Promise<SimpleRecord | undefined>;-->

<script>
window.SmartSuite.update_records('67161745a504292e31e25ad5', '6740a4eb96b9e63d42ff9fed', {
id: '6740a4eb96b9e63d42ff9fed',
status: { value: 'ready_for_review', updated_on: null },
}).then((res) => {
console.log('result =>>>', res);
});
</script>