I currently have a google sheets script that's automated to create a google calendar event daily at a specific time from a google sheets cell. When I execute it manually, it works. But when I allow it to automatically execute at that specific time it simply creates a calendar event with the title "last updated." Any idea why? I've included the code below:
function sheets_to_calendar(){
var mycal = "[email protected]";
var event = CalendarApp.getCalendarById(mycal);
var Title = SpreadsheetApp.getActiveSheet().getRange('J1').getValue();
var date = new Date();
var description = SpreadsheetApp.getActiveSheet().getRange('F2').getValue();
event.createAllDayEvent(Title, date, {description: description});
}