The Google Apps script ran in a spreadsheet below and everything worked fine except sending the invites. Using sendInvites:true
the event is created in the calendar and the guests are added but no email is sent. I have tried it without using the var advancedArgs
and same results.
if (eventImported != EVENT_IMPORTED && title != "") { // Prevents importing duplicates
var cal = CalendarApp.openByName('calendarname');
var advancedArgs = {description: details, location: cust, guests:guestlist, sendInvites:true};
cal.createEvent("10% Complete-->"+title, startDate, endDate, {description: details, location: cust, guests:guestlist, sendInvites:true});
sheet.getRange(startcolumn + i, 9).setValue(EVENT_IMPORTED);