createRecord with many to many field

script doo.table.createRecord returning error due to field roleID whitch is multiple value. In table setting as many to many.

const insertLogCZ = await doo.table.createRecord(‘WFA_LOG’, {
“stat”: “CZ”,
“roleID”: [
{ id: “b8c6dc0c-4390-4e97-bfb0-157ac435d4d4” },
{ id: “3f2935a4-aaa2-4868-9687-5a7f6aeb2f2a” }
],
“wfID”: { id: doo.workflow.runningData.wfId },
“typUdalosti”: “Záznam běhu”,
“oblast”: “Data”,
“casUdalosti”: new Date(),
“popisUdalosti”: doo.workflow.runningData.logCZ
});

Manulaly created record is

In console looks like

Is possible insert somehow multiple value into field roleId? Function addLinks is not available and another sintax does not work too.

Hi,

to add records to the Link to table (many to many) field you need to use syntax with “add” or “remove” see documentation: Tabidoo API v.2 · Apiary