_setRow

Adds data to an array of table cells

Parameters

cid

Customer ID

tid

Table ID

id

Row ID. Leave as 0 to add a new row. Otherwise use the ID of the row.

row

JSON-encoded hash-array of data. The indexes of the items are the column IDs.

Example

FM_api('CustomerTable_setRow',['id'=>'0','cid'=>'502772','tid'=>'1580830943940','row'=>'{"1":"1","2":"4","3":"3","31":"2","32":"5"}']);

This example shows the addition of a row to table 1580830943940 for customer 502772. The columns amended have IDs 1, 2, 3, 31, 32.

On Success

The ID of the created or edited row will be returned on success.

Last updated