繁体   English   中英

工作表和日历之间的 Apps 脚本问题

[英]Issue with Apps Script between sheets and calendar

我正在尝试从一张日期列和一列数据中创建事件。

我被这个错误消息挂断了:

找不到方法 createAllDayEventSeries(string,string,string)。 (第 14 行,文件“代码”)

我的代码附在屏幕截图中,大部分时间我都遵循 Gsuite 在线教程,尽管我使用了全天事件代码,因为我的工作表中没有时间。

关于我哪里出错的任何线索?

我的代码截图

问题是参数的类型错误。 根据https://developers.google.com/apps-script/reference/calendar/calendar#createalldayeventseriestitle,-startdate,-recurrence

参数

Name        Type                Description
title       String              the title of the events in the series
startDate   Date                the date of the first event in the series (only the day is used; the time is ignored)  
recurrence  EventRecurrence     the recurrence settings of the event series

但是您的脚本将所有参数作为字符串传递

有关的

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM