javascript API issue when creating post request

I have issue when i make javascript API POST request. I want to sent data form A application to B application using EVENT button at detail page record.

this is 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 work perfectly if i only sent field outside table(normarly fields, lookup fields) and table without lookup fields inside.

 

But when i try to sent table with lookup field inside, i always get 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!

it’s solve by itself :D.

if anyone have the same issue please read topic:

https://developer.kintone.io/hc/en-us/articles/115003211768-Debugging-Tips-for-kintone-JS

turn option「“Prohibit Duplicate Values” 」on. option of datasource app field.