【发布时间】:2013-01-23 16:54:23
【问题描述】:
Google Apps 脚本在下面的电子表格中运行,除了发送邀请之外一切正常。使用sendInvites:true 在日历中创建事件并添加客人,但不发送电子邮件。我在不使用var advancedArgs 的情况下进行了尝试,结果相同。
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);
【问题讨论】:
-
你找到原因了吗?
标签: google-apps-script google-calendar-api