Skip to main content

Bulk Create Records

Creates multiple new Records in a specified Table. Note that batches are limited to 25.

bulk_create_records(tableId: ID, records: Array<Partial<SimpleRecord>>): Promise<SimpleRecord[]>;
Parameter NameTypeDescription
tableIdstringThe Id of the Table to create the record in.
RecordsSimpleRecord[]An array of simple record objects.

SimpleRecord

A simplified representation of a SmartSuite record.

export interface SimpleRecord {
id: ID;
title: string;
[key: string]: any;
}
Example Script - Bulk Create Records

<!--bulk_create_records(appId: ID, records: Array<Partial<SimpleRecord>>): Promise<SimpleRecord[]>;-->

<script>

window.SmartSuite.bulk_create_records('67458368f64e11aadd7a7513', [{
'id': null,
'first_created': { 'by': null, 'on': '' },
'last_updated': { 'by': null, 'on': '' },
'comments_count': 0,
'followed_by': [],
'title': 'test10',
'description': { 'data': { 'type': 'doc', 'content': [] }, 'html': '', 'preview': '' },
'assigned_to': [],
'status': { 'value': 'backlog', 'updated_on': null },
'due_date': {
'from_date': { 'date': null, 'include_time': false },
'to_date': { 'date': null, 'include_time': false },
'status_updated_on': null,
'status_is_completed': false,
},
'priority': '',
'autonumber': null,
}, {
'id': null,
'first_created': { 'by': null, 'on': '' },
'last_updated': { 'by': null, 'on': '' },
'comments_count': 0,
'followed_by': [],
'title': 'test100',
'description': { 'data': { 'type': 'doc', 'content': [] }, 'html': '', 'preview': '' },
'assigned_to': [],
'status': { 'value': 'backlog', 'updated_on': null },
'due_date': {
'from_date': { 'date': null, 'include_time': false },
'to_date': { 'date': null, 'include_time': false },
'status_updated_on': null,
'status_is_completed': false,
},
'priority': '',
'autonumber': null,
}]).then((res) => {
console.log('result =>>>', res);
});
</script>