【问题标题】:Attaching a folder to an existing calendar entry using google script使用 google 脚本将文件夹附加到现有日历条目
【发布时间】:2020-12-15 20:13:06
【问题描述】:

我正在尝试添加一个文件夹作为现有日历活动的附件。

这是我目前的代码

var clientEvent = myEvent
var calendarId = myCalendar
var calendarResource = {
        attachments: [{
       'folderID': clientFolder.getId()
        }]
                        };
Calendar.Events.patch(calendarResource, calendarID , clientEvent.getId(), {"supportsAttachments": true});

【问题讨论】:

  • 我建议您在问题中添加更多标签,以便更多人看到它。仅 [calendar] 标签可能还不够。

标签: google-apps-script calendar google-calendar-api


【解决方案1】:

您不能将文件夹添加为活动附件,只能添加文档

  • 您可以将文件夹中包含的所有文档添加为附件(可以通过循环动态完成)
  • 或者只需在活动说明中提供指向文件夹的链接(您需要更新 access permissions 以提供对所有活动参与者的访问权限)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-08-16
    • 1970-01-01
    • 1970-01-01
    • 2020-03-06
    • 1970-01-01
    • 2021-08-21
    • 1970-01-01
    • 2021-04-19
    相关资源
    最近更新 更多