I have an issue when I make a JavaScript API POST request. I want to send data form Kintone App A to Kintone App B using the EVENT button on the detail page record.
Code
This is the source code:
kintone.api(kintone.api.url('/k/v1/record', true), 'POST', body, function (resp) {
// success
console.log(resp);
}, function (error) {
// error
console.log(error);
});
It works if I only sent a field outside Table field (normal fields, lookup fields) and a table without Lookup field inside.
But when I try to send a table with a lookup field inside, I always get the following error:
{"code":"GAIA_LO03","id":"khYts2IzekEZXJqxu512","message":"Cannot retrieve data from the data source. The key field in the datasource app must be prohibited duplicate values."}
please show me if you can.
Thank you in advance!