{"id":23755,"date":"2026-10-15T20:41:00","date_gmt":"2026-10-15T11:41:00","guid":{"rendered":"https:\/\/cg-method.com\/google\/?p=23755"},"modified":"2026-10-31T13:56:51","modified_gmt":"2026-10-31T04:56:51","slug":"gas-spreadsheet-to-calendar","status":"publish","type":"post","link":"https:\/\/cg-method.com\/google\/gas-spreadsheet-to-calendar\/","title":{"rendered":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089Google\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u4e88\u5b9a\u3092\u81ea\u52d5\u767b\u9332\u3059\u308b\u65b9\u6cd5\uff5c\u91cd\u8907\u3092\u9632\u3050GAS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089Google\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u4e88\u5b9a\u3092\u81ea\u52d5\u3067\u767b\u9332\u3059\u308b\u306b\u306f\u3001\u4e88\u5b9a\u306e\u4e00\u89a7\u3092\u8868\u306b\u3057\u3066\u304a\u304d\u3001GAS\uff08Google Apps Script\uff09\u30671\u884c\u305a\u3064 CalendarApp \u306e createEvent \u3092\u547c\u3073\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u767b\u9332\u6e08\u307fID\u3092\u8868\u3078\u6b8b\u3057\u3001\u540c\u3058\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u540c\u6642\u5b9f\u884c\u3092\u30ed\u30c3\u30af\u3067\u5236\u9650\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u767b\u9332\u524d\u306b\u306f\u300c\u51e6\u7406\u4e2d\u300d\u3092\u4fdd\u5b58\u3057\u3001\u5931\u6557\u3057\u305f\u884c\u3092\u81ea\u52d5\u3067\u518d\u767b\u9332\u3057\u306a\u3044\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3060\u3057\u3001\u30b3\u30d4\u30fc\u3057\u305f\u884c\u3084\u4eba\u306e\u540c\u6642\u7de8\u96c6\u3092\u542b\u3081\u3001\u3042\u3089\u3086\u308b\u4e8c\u91cd\u767b\u9332\u3092\u9632\u3050\u4fdd\u8a3c\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u3084\u8a2a\u554f\u306e\u4e88\u5b9a\u3092\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u7ba1\u7406\u3057\u3066\u3044\u3066\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u3078\u306e\u5165\u529b\u3092\u624b\u3067\u7e70\u308a\u8fd4\u3057\u305f\u304f\u306a\u3044\u65b9\u306b\u5411\u3051\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u63b2\u8f09\u30b3\u30fc\u30c9\u306f2026\u5e7410\u670823\u65e5\u306b\u898b\u76f4\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Node.js\u306e\u6a21\u64ec\u74b0\u5883\u3067\u3001\u6642\u523b\u306e\u691c\u8a3c\u3001\u9001\u4fe1\u306a\u3057\u306e\u521d\u671f\u72b6\u614b\u3001\u51e6\u7406\u4e2d\u3068\u767b\u9332\u6e08\u307f\u306e\u6271\u3044\u3001\u30ed\u30c3\u30af\u89e3\u653e\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306eGoogle\u30ab\u30ec\u30f3\u30c0\u30fc\u3078\u306e\u767b\u9332\u306f\u8a66\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u4f7f\u3046\u524d\u306b\u30c6\u30b9\u30c8\u7528\u306e\u884c\u3067\u78ba\u304b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8868\u3092\u7528\u610f\u3059\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u4e88\u5b9a\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30b7\u30fc\u30c8\u306b\u3001\u6b21\u306e\u5217\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table class=\"has-fixed-layout\"><thead><tr><th style=\"min-width:8em !important\">\u5217<\/th><th>\u5165\u529b\u5185\u5bb9<\/th><th>\u4f8b<\/th><\/tr><\/thead><tbody><tr><td>A<\/td><td>\u30bf\u30a4\u30c8\u30eb<\/td><td>\u5b9a\u4f8b\u4f1a\u8b70<\/td><\/tr><tr><td>B<\/td><td>\u65e5\u4ed8<\/td><td>2026\/10\/20<\/td><\/tr><tr><td>C<\/td><td>\u958b\u59cb\u6642\u523b\uff08\u7d42\u65e5\u306a\u3089\u7a7a\u6b04\uff09<\/td><td>10:00<\/td><\/tr><tr><td>D<\/td><td>\u7d42\u4e86\u6642\u523b\uff08\u7d42\u65e5\u306a\u3089\u7a7a\u6b04\uff09<\/td><td>11:30<\/td><\/tr><tr><td>E<\/td><td>\u5834\u6240<\/td><td>\u4f1a\u8b70\u5ba4A<\/td><\/tr><tr><td>F<\/td><td>\u8aac\u660e<\/td><td>\u9031\u6b21\u306e\u9032\u6357\u78ba\u8a8d<\/td><\/tr><tr><td>G<\/td><td>\u767b\u9332\u6e08\u307fID\uff08\u7a7a\u6b04\u306e\u307e\u307e\u59cb\u3081\u308b\uff09<\/td><td>\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u66f8\u304d\u8fbc\u3080<\/td><\/tr><tr><td>H<\/td><td>\u30e1\u30e2\uff08\u7a7a\u6b04\u306e\u307e\u307e\u59cb\u3081\u308b\uff09<\/td><td>\u624b\u52d5\u78ba\u8a8d\u7528\uff08\u30b3\u30fc\u30c9\u306f\u5909\u66f4\u3057\u306a\u3044\uff09<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">\u4e88\u5b9a\u30b7\u30fc\u30c8\u306e\u5217<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e5\u4ed8\u3068\u6642\u523b\u306f\u3001\u6587\u5b57\u3067\u306f\u306a\u304f\u65e5\u4ed8\u30fb\u6642\u523b\u3068\u3057\u3066\u30bb\u30eb\u306b\u5165\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u306e\u6642\u523b\u4ed8\u304d\u4e88\u5b9a\u306f\u540c\u3058\u65e5\u306e\u4e2d\u3067\u7d42\u308f\u308b\u3082\u306e\u304c\u5bfe\u8c61\u3067\u300123\u6642\u304b\u3089\u7fcc\u65e51\u6642\u306a\u3069\u306e\u65e5\u3092\u307e\u305f\u3050\u4e88\u5b9a\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u306f\u898b\u51fa\u3057\u306e\u6b21\u306e2\uff5e11\u884c\u3092\u5bfe\u8c61\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b7\u30fc\u30c8\u306e12\u884c\u76ee\u4ee5\u964d\u306b\u5024\u304c\u3042\u308b\u3068\u3001A\uff5eH\u5217\u4ee5\u5916\u306e\u5024\u3067\u3082\u51e6\u7406\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A\uff5eH\u5217\u306f\u4e0a\u8868\u306e\u9806\u5e8f\u3067\u3001\u7d50\u5408\u30bb\u30eb\u3084\u6570\u5f0f\u3092\u542b\u3081\u305a\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u6b63\u306a\u65e5\u4ed8\u30fb\u7247\u65b9\u3060\u3051\u306e\u6642\u523b\u30fb\u6587\u5b57\u5217\u306e\u6642\u523b\u306f\u3001\u7d42\u65e5\u4e88\u5b9a\u3078\u5909\u63db\u305b\u305a\u30a8\u30e9\u30fc\u3067\u6b62\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u4e2d\u306f\u7de8\u96c6\u30fb\u4e26\u3079\u66ff\u3048\u30fb\u884c\u306e\u8ffd\u52a0\u524a\u9664\u3092\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u300c\u62e1\u5f35\u6a5f\u80fd\u300d\u304b\u3089\u300cApps Script\u300d\u3092\u958b\u304d\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-javascript\"><code>\/\/ \u7df4\u7fd2\u7528\u30b7\u30fc\u30c8\u3068\u30c6\u30b9\u30c8\u7528\u30ab\u30ec\u30f3\u30c0\u30fc\u3067\u4f7f\u3046\nconst SHEET_NAME = '\u4e88\u5b9a';\nconst CALENDAR_ID = ''; \/\/ \u30c6\u30b9\u30c8\u7528\u30ab\u30ec\u30f3\u30c0\u30fc\u306eID\u3092\u5fc5\u305a\u8a2d\u5b9a\u3059\u308b\nconst DRY_RUN = true; \/\/ true\u3067\u306f\u4e88\u5b9a\u3082\u30bb\u30eb\u3082\u5909\u66f4\u3057\u306a\u3044\n\nfunction registerEvents() {\n  if (!CALENDAR_ID) throw new Error('\u30c6\u30b9\u30c8\u7528\u30ab\u30ec\u30f3\u30c0\u30fc\u306eID\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002');\n  const lock = LockService.getScriptLock();\n  if (!lock.tryLock(5000)) throw new Error('\u5225\u306e\u5b9f\u884c\u304c\u51e6\u7406\u4e2d\u3067\u3059\u3002');\n  try {\n    const book = SpreadsheetApp.getActiveSpreadsheet();\n    const sheet = book &amp;&amp; book.getSheetByName(SHEET_NAME);\n    const calendar = CalendarApp.getCalendarById(CALENDAR_ID);\n    if (!sheet || !calendar) throw new Error('\u30b7\u30fc\u30c8\u307e\u305f\u306f\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002');\n    const tz = Session.getScriptTimeZone();\n    if (book.getSpreadsheetTimeZone() !== tz || calendar.getTimeZone() !== tz) {\n      throw new Error('\u30b7\u30fc\u30c8\u30fb\u30b9\u30af\u30ea\u30d7\u30c8\u30fb\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3092\u305d\u308d\u3048\u3066\u304f\u3060\u3055\u3044\u3002');\n    }\n    const lastRow = sheet.getLastRow();\n    if (lastRow &lt; 2) return;\n    if (lastRow &gt; 11) throw new Error('\u3053\u306e\u7df4\u7fd2\u4f8b\u306f10\u884c\u307e\u3067\u3067\u3059\u3002');\n    const range = sheet.getRange(2, 1, lastRow - 1, 8);\n    if (range.isPartOfMerge() || range.getFormulas().some(row =&gt; row.some(Boolean))) {\n      throw new Error('\u7df4\u7fd2\u7bc4\u56f2\u306f\u7d50\u5408\u30bb\u30eb\u30fb\u6570\u5f0f\u3092\u542b\u3081\u305a\u5024\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002');\n    }\n    const values = range.getValues();\n    for (let i = 0; i &lt; values.length; i++) {\n      const row = values[i];\n      const [title, date, start, end, location, description, registeredId] = row;\n      if (registeredId || row.every(value =&gt; value === '')) continue;\n      if (typeof title !== 'string' || !title.trim() || !validDate(date)) {\n        throw new Error((i + 2) + '\u884c\u76ee\u306e\u30bf\u30a4\u30c8\u30eb\u30fb\u65e5\u4ed8\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002');\n      }\n      const allDay = start === '' &amp;&amp; end === '';\n      if (!allDay &amp;&amp; (!validDate(start) || !validDate(end))) {\n        throw new Error((i + 2) + '\u884c\u76ee\u306f\u958b\u59cb\u30fb\u7d42\u4e86\u306e\u4e21\u65b9\u306b\u6642\u523b\u3092\u5165\u308c\u3066\u304f\u3060\u3055\u3044\u3002');\n      }\n      const startTime = allDay ? date : combine(date, start);\n      const endTime = allDay ? null : combine(date, end);\n      if (!allDay &amp;&amp; endTime &lt;= startTime) throw new Error('\u7d42\u4e86\u306f\u958b\u59cb\u3088\u308a\u5f8c\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002');\n      if (DRY_RUN) { console.log('\u767b\u9332\u5019\u88dc\u306e\u884c: ' + (i + 2)); continue; }\n      const target = sheet.getRange(i + 2, 1, 1, 8);\n      if (JSON.stringify(target.getValues()[0]) !== JSON.stringify(row)) {\n        throw new Error('\u5165\u529b\u304c\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002\u505c\u6b62\u3057\u307e\u3059\u3002');\n      }\n      sheet.getRange(i + 2, 7).setValue('\u51e6\u7406\u4e2d');\n      SpreadsheetApp.flush();\n      const options = { location: String(location), description: String(description) };\n      const event = allDay ? calendar.createAllDayEvent(title, date, options)\n        : calendar.createEvent(title, startTime, endTime, options);\n      \/\/ \u4f5c\u6210\u5f8c\u306e\u5931\u6557\u3067\u306f\u300c\u51e6\u7406\u4e2d\u300d\u304c\u6b8b\u308a\u3001\u81ea\u52d5\u3067\u306f\u518d\u767b\u9332\u3057\u306a\u3044\n      const expected = row.slice(); expected[6] = '\u51e6\u7406\u4e2d';\n      if (JSON.stringify(target.getValues()[0]) !== JSON.stringify(expected)) {\n        throw new Error('\u4f5c\u6210\u5f8c\u306b\u884c\u306e\u5909\u66f4\u3092\u691c\u51fa\u3057\u307e\u3057\u305f\u3002\u30ab\u30ec\u30f3\u30c0\u30fc\u3068\u7167\u5408\u3057\u3066\u304f\u3060\u3055\u3044\u3002');\n      }\n      sheet.getRange(i + 2, 7).setValue(event.getId());\n      SpreadsheetApp.flush();\n    }\n  } finally { lock.releaseLock(); }\n}\n\nfunction validDate(value) {\n  return value instanceof Date &amp;&amp; !Number.isNaN(value.getTime());\n}\n\nfunction combine(date, time) {\n  return new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes());\n}<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>CALENDAR_ID<\/code>\u306b\u81ea\u5206\u304c\u4e88\u5b9a\u3092\u4f5c\u6210\u3067\u304d\u308b\u30c6\u30b9\u30c8\u7528\u30ab\u30ec\u30f3\u30c0\u30fc\u306eID\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>DRY_RUN = true<\/code>\u306e\u307e\u307e\u3001\u95a2\u6570\u4e00\u89a7\u3067<code>registerEvents<\/code>\u3092\u9078\u3093\u3067\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5019\u88dc\u306e\u884c\u756a\u53f7\u3060\u3051\u3092\u30ed\u30b0\u306b\u51fa\u3057\u3001\u4e88\u5b9a\u3082\u30bb\u30eb\u3082\u5909\u66f4\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5165\u529b\u3068\u5bfe\u8c61\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089<code>false<\/code>\u3078\u5909\u66f4\u3057\u3001\u5c11\u6570\u306e\u67b6\u7a7a\u306e\u4e88\u5b9a\u3067\u8a66\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9014\u4e2d\u306e\u884c\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3082\u3001\u305d\u308c\u3088\u308a\u524d\u306b\u4f5c\u6210\u3055\u308c\u305f\u4e88\u5b9a\u3084G\u5217\u306eID\u306f\u53d6\u308a\u6d88\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u306e\u52d5\u304d<\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table class=\"has-fixed-layout\"><thead><tr><th style=\"min-width:8em !important\">\u51e6\u7406<\/th><th>\u3057\u3066\u3044\u308b\u3053\u3068<\/th><\/tr><\/thead><tbody><tr><td>\u767b\u9332\u6e08\u307f\u306e\u78ba\u8a8d<\/td><td>G\u5217\u306bID\u3084\u51e6\u7406\u4e2d\u304c\u3042\u308b\u884c\u3001\u5168\u9805\u76ee\u304c\u7a7a\u306e\u884c\u306f\u98db\u3070\u3059<\/td><\/tr><tr><td>\u6642\u523b\u3042\u308a\u306e\u4e88\u5b9a<\/td><td>\u65e5\u4ed8\u3068\u6642\u523b\u3092\u7d44\u307f\u5408\u308f\u305b\u3066 createEvent \u3067\u767b\u9332\u3059\u308b<\/td><\/tr><tr><td>\u7d42\u65e5\u306e\u4e88\u5b9a<\/td><td>\u958b\u59cb\u6642\u523b\u3068\u7d42\u4e86\u6642\u523b\u304c\u7a7a\u6b04\u306a\u3089 createAllDayEvent \u3067\u767b\u9332\u3059\u308b<\/td><\/tr><tr><td>\u6642\u523b\u306e\u8aa4\u308a<\/td><td>\u7247\u65b9\u3060\u3051\u30fb\u6587\u5b57\u5217\u306e\u6642\u523b\u3001\u7d42\u4e86\u304c\u958b\u59cb\u4ee5\u524d\u306a\u3089\u30a8\u30e9\u30fc\u3067\u505c\u6b62\u3059\u308b<\/td><\/tr><tr><td>ID\u306e\u66f8\u304d\u623b\u3057<\/td><td>\u767b\u9332\u3057\u305f\u4e88\u5b9a\u306eID\u3092G\u5217\u306b\u66f8\u304d\u3001\u6b21\u304b\u3089\u306f\u98db\u3070\u3059<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">registerEvents\u306e\u51e6\u7406<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Apps Script\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u306f\u3001createEvent \u306f\u30bf\u30a4\u30c8\u30eb\u3001\u958b\u59cb\u3068\u7d42\u4e86\u306e\u65e5\u6642\u3001\u5834\u6240\u3084\u8aac\u660e\u306a\u3069\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u53d7\u3051\u53d6\u308a\u3001\u4f5c\u3063\u305f\u4e88\u5b9a\u3092\u8fd4\u3059\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\uff08<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/calendar\/calendar\">Apps Script\uff1aClass Calendar<\/a>\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CALENDAR_ID\u304c\u7a7a\u6b04\u306a\u3089\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u610f\u56f3\u3057\u306a\u3044\u30c7\u30d5\u30a9\u30eb\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u3078\u306e\u767b\u9332\u3092\u907f\u3051\u308b\u305f\u3081\u3001\u767b\u9332\u5148\u3092\u660e\u793a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5171\u6709\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u306a\u3069\u5225\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u767b\u9332\u3059\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u8a2d\u5b9a\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u308b\u30ab\u30ec\u30f3\u30c0\u30fcID\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306b\u6ce8\u610f\u3059\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u306f\u3001createEvent \u3067\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3092\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u3001\u6642\u523b\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3067\u89e3\u91c8\u3055\u308c\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3068\u9055\u3046\u3053\u3068\u304c\u3042\u308b\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Apps Script\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u3067\u3001\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u304c\u65e5\u672c\uff08\u6771\u4eac\uff09\u306a\u3069\u3001\u5b9f\u969b\u306b\u4f7f\u3046\u5730\u57df\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3092\u78ba\u304b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e88\u5b9a\u306e\u6642\u523b\u304c\u6570\u6642\u9593\u305a\u308c\u3066\u767b\u9332\u3055\u308c\u308b\u5834\u5408\u306f\u3001\u307e\u305a\u3053\u3053\u3092\u78ba\u304b\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u62db\u5f85\u30e1\u30fc\u30eb\u3068\u4e0a\u9650<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u53c2\u52a0\u8005\u3092\u62db\u5f85\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306b guests\uff08\u30ab\u30f3\u30de\u533a\u5207\u308a\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff09\u3092\u52a0\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u306f\u3001\u62db\u5f85\u30e1\u30fc\u30eb\u3092\u9001\u308b\u304b\u3069\u3046\u304b\u3092\u6c7a\u3081\u308b sendInvites \u306e\u521d\u671f\u5024\u306f false \u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Apps Script\u306e\u4e0a\u9650\u306e\u4e00\u89a7\u3067\u306f\u30011\u65e5\u306b\u4f5c\u308c\u308b\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u4e88\u5b9a\u306f\u3001\u7121\u6599\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u30675,000\u4ef6\u3001Google Workspace\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306710,000\u4ef6\u30011\u56de\u306e\u5b9f\u884c\u6642\u9593\u306f6\u5206\u307e\u3067\u3068\u306a\u3063\u3066\u3044\u307e\u3059\uff08<a href=\"https:\/\/developers.google.com\/apps-script\/guides\/services\/quotas\">Apps Script\uff1aQuotas for Google Services<\/a>\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u63b2\u8f09\u30b3\u30fc\u30c9\u306b\u306f\u3001\u5927\u91cf\u306e\u884c\u3092\u81ea\u52d5\u3067\u5206\u5272\u3057\u3066\u518d\u958b\u3059\u308b\u6a5f\u80fd\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">10\u884c\u3092\u8d85\u3048\u308b\u672c\u756a\u904b\u7528\u306b\u306f\u3001\u51e6\u7406\u7bc4\u56f2\u30fb\u518d\u958b\u4f4d\u7f6e\u30fb\u4f5c\u6210\u6e08\u307fID\u306e\u4fdd\u5b58\u3068\u5fa9\u65e7\u3092\u6271\u3046\u5225\u306e\u8a2d\u8a08\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u6642\u9593\u306e\u5236\u9650\u3078\u306e\u5bfe\u51e6\u306f\u3001<a href=\"https:\/\/cg-method.com\/google\/gas-getvalues-setvalues-batch\/\">getValues\u3068setValues\u3067\u4e00\u62ec\u51e6\u7406\u3059\u308b\u65b9\u6cd5<\/a>\u3082\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u81ea\u52d5\u3067\u5b9f\u884c\u3059\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9a\u671f\u5b9f\u884c\u3092\u8a66\u3059\u5834\u5408\u306f\u3001\u624b\u52d5\u3067\u306e\u767b\u9332\u3068\u518d\u5b9f\u884c\u306e\u78ba\u8a8d\u3092\u7d42\u3048\u3066\u304b\u3089\u3001\u6642\u9593\u4e3b\u5c0e\u578b\u30c8\u30ea\u30ac\u30fc\u3078<code>registerEvents<\/code>\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u5b9a\u671f\u5b9f\u884c\u3067\u3082\u30b7\u30fc\u30c8\u306e2\uff5e11\u884c\u3068\u3044\u3046\u5236\u9650\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c8\u30ea\u30ac\u30fc\u306e\u4f5c\u6210\u8005\u306b\u306f\u3001\u5bfe\u8c61\u30b7\u30fc\u30c8\u3078\u306e\u7de8\u96c6\u6a29\u9650\u3068\u30ab\u30ec\u30f3\u30c0\u30fc\u3078\u306e\u4e88\u5b9a\u4f5c\u6210\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u3059\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/developers.google.com\/apps-script\/guides\/triggers\/installable\">Google\u516c\u5f0f\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u578b\u30c8\u30ea\u30ac\u30fc\u30ac\u30a4\u30c9<\/a>\u3082\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">G\u5217\u306bID\u307e\u305f\u306f\u300c\u51e6\u7406\u4e2d\u300d\u304c\u3042\u308b\u884c\u306f\u98db\u3070\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u51e6\u7406\u4e2d\u300d\u306f\u4f5c\u6210\u524d\u30fb\u4f5c\u6210\u6e08\u307f\u30fb\u7d50\u679c\u4e0d\u660e\u306e\u3044\u305a\u308c\u3082\u3042\u308a\u5f97\u308b\u305f\u3081\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u3068\u7167\u5408\u305b\u305a\u6d88\u3057\u3066\u518d\u5b9f\u884c\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ID\u3092\u6d88\u3057\u305f\u884c\u3084\u30b3\u30d4\u30fc\u3057\u305f\u884c\u306f\u5225\u6271\u3044\u306b\u306a\u308b\u306e\u3067\u3001\u5b9a\u671f\u5b9f\u884c\u306e\u524d\u306b\u5fa9\u65e7\u3068\u91cd\u8907\u78ba\u8a8d\u306e\u904b\u7528\u3092\u6c7a\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u65b9\u6cd5\u306f\u3001<a href=\"https:\/\/cg-method.com\/google\/gas-triggers-setup\/\">GAS\u306e\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u65b9\u6cd5<\/a>\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u767b\u9332\u3057\u305f\u5f8c\u306b\u78ba\u304b\u3081\u308b\u3053\u3068<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>\u30ab\u30ec\u30f3\u30c0\u30fc\u3067\u3001\u4e88\u5b9a\u306e\u65e5\u4ed8\u3068\u6642\u523b\u304c\u8868\u3068\u540c\u3058\u306b\u306a\u3063\u3066\u3044\u308b<\/li>\n\n\n<li>\u7d42\u65e5\u306e\u4e88\u5b9a\u304c\u3001\u7d42\u65e5\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u3066\u3044\u308b<\/li>\n\n\n<li>G\u5217\u306bID\u304c\u5165\u308a\u3001\u3082\u3046\u4e00\u5ea6\u5b9f\u884c\u3057\u3066\u3082\u4e88\u5b9a\u304c\u5897\u3048\u306a\u3044<\/li>\n\n\n<li>\u5b9f\u884c\u30ed\u30b0\u306e\u30a8\u30e9\u30fc\u3092\u78ba\u8a8d\u3057\u3001\u300c\u51e6\u7406\u4e2d\u300d\u306e\u884c\u306f\u4f5c\u6210\u72b6\u6cc1\u3092\u30ab\u30ec\u30f3\u30c0\u30fc\u3068\u7167\u5408\u3057\u305f\u3002H\u5217\u306f\u3053\u306e\u4f8b\u3067\u306f\u5909\u66f4\u3057\u306a\u3044<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">G\u5217\u306bID\u304c\u3042\u308b\u884c\u306f\u51e6\u7406\u3092\u98db\u3070\u3059\u305f\u3081\u3001\u8868\u306e\u30bf\u30a4\u30c8\u30eb\u3084\u6642\u523b\u3092\u76f4\u3057\u3066\u3082\u3001\u767b\u9332\u6e08\u307f\u306e\u4e88\u5b9a\u306f\u66f4\u65b0\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8868\u304b\u3089\u4e88\u5b9a\u3092\u6d88\u3057\u3066\u3082\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u4e88\u5b9a\u306f\u81ea\u52d5\u3067\u306f\u6d88\u3048\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e88\u5b9a\u3092\u53d6\u308a\u6d88\u3059\u5834\u5408\u306f\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u5074\u3067\u3082\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u795d\u65e5\u3084\u4f11\u65e5\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u52d5\u304b\u3055\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/cg-method.com\/google\/gas-skip-on-holidays\/\">\u795d\u65e5\u30fb\u4f11\u65e5\u30fb\u6307\u5b9a\u3057\u305f\u65e5\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u65b9\u6cd5<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u4e88\u5b9a\u3092GAS\u3067Google\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u81ea\u52d5\u767b\u9332\u3059\u308b\u65b9\u6cd5\u3092\u3001\u91cd\u8907\u3092\u9632\u3050\u30b3\u30fc\u30c9\u3001\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u6ce8\u610f\u3001\u4e0a\u9650\u3068\u81ea\u52d5\u5b9f\u884c\u307e\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":23756,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u4e88\u5b9a\u3092\u81ea\u52d5\u767b\u9332","ssp_meta_description":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u4e88\u5b9a\u3092GAS\u3067Google\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u81ea\u52d5\u767b\u9332\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u767b\u9332\u3057\u305fID\u3092\u66f8\u304d\u623b\u3057\u3066\u91cd\u8907\u3092\u9632\u3050\u30b3\u30fc\u30c9\u3001\u7d42\u65e5\u3068\u6642\u523b\u3042\u308a\u306e\u5206\u3051\u65b9\u3001\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u6ce8\u610f\u3001\u62db\u5f85\u30681\u65e5\u306e\u4e0a\u9650\u3001\u30c8\u30ea\u30ac\u30fc\u3067\u306e\u81ea\u52d5\u5b9f\u884c\u3082\u307e\u3068\u3081\u307e\u3057\u305f\u3002"},"categories":[16],"tags":[],"class_list":["post-23755","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-applications"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/23755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/comments?post=23755"}],"version-history":[{"count":4,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/23755\/revisions"}],"predecessor-version":[{"id":23887,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/23755\/revisions\/23887"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/media\/23756"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/media?parent=23755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/categories?post=23755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/tags?post=23755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}