Select Class


Methods of the Record class

Guides

Welcome to class reference

Class: Record
NameTypeComment
RecordClassThis class is to help the user interact with Records.

Note: Remember to add Roles to Groups
and add Groups to Users that will be a part of the workflow.

Method: create
NameTypeComment
createMethodCreate a Record to a Table
ReturnRequirements
The new Record or an error message.none

Parameters
NameCommentType
tableApiNameThe Table api name.string
dataA table with fields and values for the new record.any



Examples

Example case:
Create record

Description:
This method will create a record inside a Table.

// Variables const tableApiName = "business_mate_task_list"; const data = { "f_title": "task01", "f_description": "Prepare the test environment", "f_priority": "1", "f_assigned_to": [ { "id": "332ed86a-4375-41fb-979b-a42d1971cdae", } ], "f_deadline": "2021-12-19T22:00:00.000Z" }; // Create Record const result = await Record.create(tableApiName, data); //Test print result console.log(result);