Hello,
I want to build a body for a webhook to update a table (raw materials order).
To do this, I need to use two other tables.
- a master table (final product Order) with an index of 4 columns.
- a slave table (links between final product and raw materials) with an index of 2 columns which is used as a link with the master table.
The wanted Body must combine each item in the slave table with the full index of the master table.
The final objective is to add new rows to the raw materials order table including the index of the master table and the linked items in the slave table.
In my example, the expected result something like this
{
"appID": "pZMlOHIHoGajs5KrKs1Z",
"mutations": [{
"kind": "add-row-to-table",
"tableName": "native-table-ANLUcAcAMqoZTzE0elRP",
"columnValues": {
"Ref": "707827",
"Col": "1430"
"Cde_PF": "3"
"Plan_no": "1"
"item": "PAK00002"
}
}, {
"kind": "add-row-to-table",
"tableName": "native-table-ANLUcAcAMqoZTzE0elRP",
"columnValues": {
"Ref": "707827",
"Col": "1430"
"Cde_PF": "3"
"Plan_no": "1"
"item": "FIL00227"
}
},{
"kind": "add-row-to-table",
"tableName": "native-table-ANLUcAcAMqoZTzE0elRP",
"columnValues": {
"Ref": "707827",
"Col": "1430"
"Cde_PF": "3"
"Plan_no": "1"
"item": "TRI00155"
},{
"kind": "add-row-to-table",
"tableName": "native-table-ANLUcAcAMqoZTzE0elRP",
"columnValues": {
"Ref": "707827",
"Col": "1430"
"Cde_PF": "3"
"Plan_no": "1"
"item": "TRI00156"
},
…
}
]
}