I'm trying to realize email notification at google spreadsheet, when sheet have no changes.
I'm tried to find smth opposite of onEdit() function. I have email script, it fired by the trigger once at day. It's working nice.
function sendEmailAlert2() {
var ss = SpreadsheetApp.openById("MyID");
var sheetname = ss.getSheetByName("Sheet1");
var Toemail = '[email protected]';
var subject = 'New Entry -' + ss.getName();
var body = 'Your file has a new entry in - ' + sheetname + ' Updated by - ' +
' check file- ' + ss.getUrl();
MailApp.sendEmail(Toemail,subject, body);
}
I need condition to this script when my sheet was no edited on this day. Maybe someone have any idea?