Hey All,
The script I was using to send a board’s data into a Google Sheet has stopped working suddenly. I presume this is because of the API changes.
I am not a developer and wondered if anyone can assist me in trying to repair the code so that the query works again.
The below code in bold is where the error is occurring, stating the following “TypeError: Cannot read properties of undefined (reading ‘boards’) downloadMondayBoard”
// Add column headers if not added yet
if (headers.length <= 2) {
data.data.boards[0].items_page_by_column_values[0].column_values.forEach(function(column) {
headers.push(column.title);
});
sheet.appendRow(headers);
}