insert

Adds a new record to an entity.

Syntax

function insert(entityName: string, values: any): string
 
Parameter Description
entityName Name of the entity where you wish to insert the record.
values Name – value pairs of the record's attributes in JSON format.

Return Value

Returns a string containing the ID of the created record.

Examples