Table of Contents

TTMSMCPStellarDS.CreateRecords Method

Inserts one or more records into a table.

API unit family: TMS.MCP.StellarDS Declaring type: TTMSMCPStellarDS

Syntax

function CreateRecords(const AProjectId: string; ATableId: Int64; const ARecords: TJSONArray): TJSONValue;

Parameters

Name Description
AProjectId Identifier of the project that holds the table.
ATableId Numeric identifier of the table to insert into.
ARecords Array of record objects to insert, each one holding the field values of a single new record. The array is copied into the request body, so the caller keeps ownership and may free it as soon as the call returns.

Returns

In moSync, the parsed response body describing the inserted records. nil in moAsync, and also in moSync when the request failed or came back with an empty body. The caller owns a returned value and has to free it; a server that called this as a tool frees it once the result has been serialized.