Hello,
I’ve tried using javascript to add rows to a table, but it won’t work.
The Key Column has initial value (UNIQUEID())
All other colu
Here’s my code :
function myFunction() {
//Create Lines in RELATION_TABLE_PAGE_COLLECTION (EN CONSTRUCTION)
const response_appsheet = UrlFetchApp.fetch(‘https://api.appsheet.com/api/v2/apps/{appID}/tables/RELATION_TABLE_PAGE_COLLECTION/Action’, {
method: ‘POST’,
headers: {
‘applicationAccessKey’: ‘{applicationAccessKey}’,
‘contentType’: ‘application/json’
},
payload: {
“Action”: “Add”,
“Rows”: [
{
“collection_ID/title_ID”: “collectionid”
}
]
}
});
Logger.log(response_appsheet);
Logger.log(response_appsheet.getResponseCode());
}
The response code is 200 meaning it’s a success, but nothing is added to my table.
Any insights on this ?
Thank you,