Name | Type | Comment |
---|---|---|
Record | Class | This 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. |
Name | Type | Comment |
---|---|---|
create | Method | Create a Record to a Table |
Return | Requirements |
---|---|
The new Record or an error message. | none |
Name | Comment | Type |
---|---|---|
tableApiName | The Table api name. | string |
data | A table with fields and values for the new record. | any |
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);
Start your 3 months of free trial now. Sign up and start your business flow right away
Get your business mate now