The code below, requires row IDS, in order for us to delete multiple rows in a Coda table using Gogle App Script.
// Import the CodaAPI library via Resource->Libraries...:
CodaAPI.authenticate('<your API token>');
var body = {
'rowIds': ['i-aBcDeFgH', 'i-AbCdEfGh'],
};
CodaAPI.deleteRows('<doc ID>', '<table ID>', body);
Logger.log('Deleted 2 rows');
How will I delete rows in a Coda table without the knowledge of row ID’s beforehand ? Or another question is how to get the list of Row ID’s from a table? Thanks!