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.