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: getOne
NameTypeComment
getOneMethodGet a Record by id from a Table
ReturnRequirements
A Record or an error message.none

Parameters
NameCommentType
tableApiNameThe Table api name.string
recordIdIdentifier for the record.string



Examples

Example case:
Get record by id

Description:
Use this method to get a record by its id. Enter tableApiName and recordId.

// Variables const tableApiName = "business_mate_task_list"; const recordId = "ba384680-859c-4bab-917b-d78d7ab3d7dc"; // Run the method and store the results in a variable const result = await Record.getOne(tableApiName, recordId); // Test print the result console.log(result);