“Cannot call SpreadsheetApp.getUi() from this context” error while not using getUi() on time-based t
I am trying to run a function every night that checks a list of dates and does work if it finds that a date has passed and all the checkboxes on that row are checked. Every day, though, I get an email saying "Cannot call SpreadsheetApp.getUi() from thi