teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

2020/11/16 07:59

投稿

yuko.t
yuko.t

スコア9

title CHANGED
File without changes
body CHANGED
@@ -27,4 +27,17 @@
27
27
 
28
28
 
29
29
  GmailApp.sendEmail(address, title , msg);
30
- ```
30
+ ```
31
+
32
+ ### 試したこと
33
+
34
+ ```GAS
35
+ function sendSchedule() {
36
+
37
+ var myCals = CalendarApp.getCalendarById('カレンダーID'); //特定のIDのカレンダーを取得
38
+ var myEvents = myCals.getEventsForDay(new Date());//カレンダーの本日のイベントを取得
39
+
40
+ var strDescription = myEvents.getDescription(); //イベントの説明欄
41
+ ```
42
+ だけで実行してみましたがこちらも同様のエラーが出ました。
43
+ > myEvents.getDescription is not a function