Apps Script公式リファレンス: Apps Script Reference |障害・課題追跡: IssueTracker |Google Workspace: Status Dashboard - Summary

2017年12月9日土曜日

Googleカレンダーでカレンダー名からidを取得する

題名の通りでカレンダー名がわかっている場合
その名前からidを取得してログに出すコードの例です


コード.gs
function get_calender_id(){
  var name = "カレンダー名";
  var calender = CalendarApp.getCalendarsByName(name);
  var id = calender[0].getId();
  Logger.log([name, id]);
}
意訳
この処理は以下を実行する
カレンダー名を指定して
その名前のカレンダーを取得して
idを取得して
ログに出す



Latest post

Google Apps Scriptの障害時はIssueTrackerを見てみる - Incidents for Apps Script are reported on Issue Tracker

IssueTracker > Apps Script issues https://issuetracker.google.com/savedsearches/566234 Google Apps Scriptの障害時は IssueTracker に課題が上がっていることが...