I'm trying to change all border width of all tables in my document to 0.
Below you'll find the script that I'm using, when I try to run it it doesn't work. Am I missing something?
I've filled in my DOCUMENT_ID but removed it in the snippet below.
function setTableProperties() {
var doc = DocumentApp.openById("DOCUMENT_ID");
var tables = doc.getBody().getTables();
tables.forEach((table) => {
table.setBorderWidth(0);
});
}