How do I fix this script in Google Apps Script to create a calendar event with invites?Google Apps Script - Creating Calendar Eventswhy isn't google apps script sending invitationsAdding guests to calendar event by script without invites being sentSending calendar invites to non-Google accounts via Google Apps Scripthow to get the ColorID of a Google Calendar Event in JavaScriptRSVP to Calendar Event with Google App ScriptHow can I send an invitation to the guest by Google Apps Script for CalendarGoogle Calendar insert does not send invitation emailGoogle Calendar API Invite to Existing EventGoogle Calendar API - Invite Attendee via emailCalendar | event change - how to notify changes to non-Google accounts

Why are we moving in circles with a tandem kayak?

Should 2FA be enabled on service accounts?

In the Schrödinger equation, can I have a Hamiltonian without a kinetic term?

Can I shorten this filter, that finds disk sizes over 100G?

How can a class have multiple methods without breaking the single responsibility principle

How do I respond appropriately to an overseas company that obtained a visa for me without hiring me?

Stationing Callouts using VBScript Labeling in ArcMap?

Can you remove a blindfold using the Telekinesis spell?

What to expect in a jazz audition

How do discovery writers hibernate?

What force enables us to walk? Friction or normal reaction?

Introduction to the Sicilian

What is the oxidation state of Mn in HMn(CO)5?

Patio gate not at right angle to the house

Why do we need a voltage divider when we get the same voltage at the output as the input?

Russian pronunciation of /etc (a directory)

A conjectural trigonometric identity

Scam? Checks via Email

What does 「ちんちんかいかい」 mean?

Easy way to get process information from a window

Reducing the time for rolling hash

What is my clock telling me to do?

Why does Latex make a small adjustment when I change section color

Should students have access to past exams or an exam bank?



How do I fix this script in Google Apps Script to create a calendar event with invites?


Google Apps Script - Creating Calendar Eventswhy isn't google apps script sending invitationsAdding guests to calendar event by script without invites being sentSending calendar invites to non-Google accounts via Google Apps Scripthow to get the ColorID of a Google Calendar Event in JavaScriptRSVP to Calendar Event with Google App ScriptHow can I send an invitation to the guest by Google Apps Script for CalendarGoogle Calendar insert does not send invitation emailGoogle Calendar API Invite to Existing EventGoogle Calendar API - Invite Attendee via emailCalendar | event change - how to notify changes to non-Google accounts






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm linking a script to a button called "Send to Calendar" that will be on each sheet in my worksheet. I want the script to:



1) Create a new event on a google calendar, basing its name and dates on the information on the sheet where the button is located (different data per sheet, all located at the same cell addresses).

2) Set a reminder for all attendees 6 weeks in advance of the start date.

3) Invite/Add guests (possibly by sending the event as an email to a non-gmail address? I'm flexible on how this looks, so long as I can automatically invite the guests.)

4) Set the colorId of all these invites to "3" (mauve), or anything other than the default event color. (This is nice, but optional.)



I've been cobbling the script together from Google's examples and some answers I've found on this site, but none quite do what I'd like. I also enabled Google Advanced Services (https://developers.google.com/apps-script/guides/services/advanced) because I read that the problem might be in the Google API permissions, but it's been a few hours since I enabled it and things are still not working. I'm not sure whether that made a difference.



This is close, I think, but it returns a 404 error and I don't know why.



function createEvent() 
var vSS = SpreadsheetApp.getActiveSpreadsheet();
var vS = vSS.getActiveSheet();
var vEventName = vS.getRange("M5").getValue();
var start = vS.getRange("M6").getValue();
var end = vS.getRange("H3").getValue();
var calendar = CalendarApp.getCalendarById(
'example@gmail.com');
var event = calendar.createEvent; vEventName;
new Date(start);
new Date(end);
attendees: [
email: 'example@example.com',
email: 'example@example.com'
];
colorId: 3
;
event = Calendar.Events.insert(event, calendar);
Logger.log('Event ID: ' + event.id);



This creates an event on my calendar successfully, but doesn't add guests, create the reminder, or change the color. (Found that here: Google Apps Script - Creating Calendar Events)



function createEvent() 
var vSS = SpreadsheetApp.getActiveSpreadsheet();
var vS = vSS.getActiveSheet();
var vStartDate = vS.getRange("M5").getValue();
var vEndDate = vS.getRange("M6").getValue();
var vEventName = vS.getRange("H3").getValue();
var calendar = CalendarApp.getCalendarById(
'example@gmail.com');
var event = calendar.createEvent(vEventName,
new Date(vStartDate),
new Date(vEndDate));
Logger.log('Event ID: ' + event.getId());



Any help is appreciated, especially if you're able to add some "//" explanations about how parts of the code work. I'm new to scripts and trying to teach myself. Thanks for looking!










share|improve this question






























    0















    I'm linking a script to a button called "Send to Calendar" that will be on each sheet in my worksheet. I want the script to:



    1) Create a new event on a google calendar, basing its name and dates on the information on the sheet where the button is located (different data per sheet, all located at the same cell addresses).

    2) Set a reminder for all attendees 6 weeks in advance of the start date.

    3) Invite/Add guests (possibly by sending the event as an email to a non-gmail address? I'm flexible on how this looks, so long as I can automatically invite the guests.)

    4) Set the colorId of all these invites to "3" (mauve), or anything other than the default event color. (This is nice, but optional.)



    I've been cobbling the script together from Google's examples and some answers I've found on this site, but none quite do what I'd like. I also enabled Google Advanced Services (https://developers.google.com/apps-script/guides/services/advanced) because I read that the problem might be in the Google API permissions, but it's been a few hours since I enabled it and things are still not working. I'm not sure whether that made a difference.



    This is close, I think, but it returns a 404 error and I don't know why.



    function createEvent() 
    var vSS = SpreadsheetApp.getActiveSpreadsheet();
    var vS = vSS.getActiveSheet();
    var vEventName = vS.getRange("M5").getValue();
    var start = vS.getRange("M6").getValue();
    var end = vS.getRange("H3").getValue();
    var calendar = CalendarApp.getCalendarById(
    'example@gmail.com');
    var event = calendar.createEvent; vEventName;
    new Date(start);
    new Date(end);
    attendees: [
    email: 'example@example.com',
    email: 'example@example.com'
    ];
    colorId: 3
    ;
    event = Calendar.Events.insert(event, calendar);
    Logger.log('Event ID: ' + event.id);



    This creates an event on my calendar successfully, but doesn't add guests, create the reminder, or change the color. (Found that here: Google Apps Script - Creating Calendar Events)



    function createEvent() 
    var vSS = SpreadsheetApp.getActiveSpreadsheet();
    var vS = vSS.getActiveSheet();
    var vStartDate = vS.getRange("M5").getValue();
    var vEndDate = vS.getRange("M6").getValue();
    var vEventName = vS.getRange("H3").getValue();
    var calendar = CalendarApp.getCalendarById(
    'example@gmail.com');
    var event = calendar.createEvent(vEventName,
    new Date(vStartDate),
    new Date(vEndDate));
    Logger.log('Event ID: ' + event.getId());



    Any help is appreciated, especially if you're able to add some "//" explanations about how parts of the code work. I'm new to scripts and trying to teach myself. Thanks for looking!










    share|improve this question


























      0












      0








      0








      I'm linking a script to a button called "Send to Calendar" that will be on each sheet in my worksheet. I want the script to:



      1) Create a new event on a google calendar, basing its name and dates on the information on the sheet where the button is located (different data per sheet, all located at the same cell addresses).

      2) Set a reminder for all attendees 6 weeks in advance of the start date.

      3) Invite/Add guests (possibly by sending the event as an email to a non-gmail address? I'm flexible on how this looks, so long as I can automatically invite the guests.)

      4) Set the colorId of all these invites to "3" (mauve), or anything other than the default event color. (This is nice, but optional.)



      I've been cobbling the script together from Google's examples and some answers I've found on this site, but none quite do what I'd like. I also enabled Google Advanced Services (https://developers.google.com/apps-script/guides/services/advanced) because I read that the problem might be in the Google API permissions, but it's been a few hours since I enabled it and things are still not working. I'm not sure whether that made a difference.



      This is close, I think, but it returns a 404 error and I don't know why.



      function createEvent() 
      var vSS = SpreadsheetApp.getActiveSpreadsheet();
      var vS = vSS.getActiveSheet();
      var vEventName = vS.getRange("M5").getValue();
      var start = vS.getRange("M6").getValue();
      var end = vS.getRange("H3").getValue();
      var calendar = CalendarApp.getCalendarById(
      'example@gmail.com');
      var event = calendar.createEvent; vEventName;
      new Date(start);
      new Date(end);
      attendees: [
      email: 'example@example.com',
      email: 'example@example.com'
      ];
      colorId: 3
      ;
      event = Calendar.Events.insert(event, calendar);
      Logger.log('Event ID: ' + event.id);



      This creates an event on my calendar successfully, but doesn't add guests, create the reminder, or change the color. (Found that here: Google Apps Script - Creating Calendar Events)



      function createEvent() 
      var vSS = SpreadsheetApp.getActiveSpreadsheet();
      var vS = vSS.getActiveSheet();
      var vStartDate = vS.getRange("M5").getValue();
      var vEndDate = vS.getRange("M6").getValue();
      var vEventName = vS.getRange("H3").getValue();
      var calendar = CalendarApp.getCalendarById(
      'example@gmail.com');
      var event = calendar.createEvent(vEventName,
      new Date(vStartDate),
      new Date(vEndDate));
      Logger.log('Event ID: ' + event.getId());



      Any help is appreciated, especially if you're able to add some "//" explanations about how parts of the code work. I'm new to scripts and trying to teach myself. Thanks for looking!










      share|improve this question














      I'm linking a script to a button called "Send to Calendar" that will be on each sheet in my worksheet. I want the script to:



      1) Create a new event on a google calendar, basing its name and dates on the information on the sheet where the button is located (different data per sheet, all located at the same cell addresses).

      2) Set a reminder for all attendees 6 weeks in advance of the start date.

      3) Invite/Add guests (possibly by sending the event as an email to a non-gmail address? I'm flexible on how this looks, so long as I can automatically invite the guests.)

      4) Set the colorId of all these invites to "3" (mauve), or anything other than the default event color. (This is nice, but optional.)



      I've been cobbling the script together from Google's examples and some answers I've found on this site, but none quite do what I'd like. I also enabled Google Advanced Services (https://developers.google.com/apps-script/guides/services/advanced) because I read that the problem might be in the Google API permissions, but it's been a few hours since I enabled it and things are still not working. I'm not sure whether that made a difference.



      This is close, I think, but it returns a 404 error and I don't know why.



      function createEvent() 
      var vSS = SpreadsheetApp.getActiveSpreadsheet();
      var vS = vSS.getActiveSheet();
      var vEventName = vS.getRange("M5").getValue();
      var start = vS.getRange("M6").getValue();
      var end = vS.getRange("H3").getValue();
      var calendar = CalendarApp.getCalendarById(
      'example@gmail.com');
      var event = calendar.createEvent; vEventName;
      new Date(start);
      new Date(end);
      attendees: [
      email: 'example@example.com',
      email: 'example@example.com'
      ];
      colorId: 3
      ;
      event = Calendar.Events.insert(event, calendar);
      Logger.log('Event ID: ' + event.id);



      This creates an event on my calendar successfully, but doesn't add guests, create the reminder, or change the color. (Found that here: Google Apps Script - Creating Calendar Events)



      function createEvent() 
      var vSS = SpreadsheetApp.getActiveSpreadsheet();
      var vS = vSS.getActiveSheet();
      var vStartDate = vS.getRange("M5").getValue();
      var vEndDate = vS.getRange("M6").getValue();
      var vEventName = vS.getRange("H3").getValue();
      var calendar = CalendarApp.getCalendarById(
      'example@gmail.com');
      var event = calendar.createEvent(vEventName,
      new Date(vStartDate),
      new Date(vEndDate));
      Logger.log('Event ID: ' + event.getId());



      Any help is appreciated, especially if you're able to add some "//" explanations about how parts of the code work. I'm new to scripts and trying to teach myself. Thanks for looking!







      google-apps-script google-calendar-api






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 22:22









      AdrienneAdrienne

      174 bronze badges




      174 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0














          Consider the following code:



          function createEvent() 
          var vSS = SpreadsheetApp.getActiveSpreadsheet();
          var vS = vSS.getActiveSheet();
          var vEventName = vS.getRange("M5").getValue();
          // M6 and H3 cells should contain valid dates
          var start = vS.getRange("M6").getValue();
          var end = vS.getRange("H3").getValue();
          var calendar = CalendarApp.getCalendarById('example@gmail.com');
          // Creating event with options (guests list)
          var event = calendar.createEvent(vEventName, start, end,
          // a comma-separated list of email addresses that should be added as guests
          guests: 'guest1@gmail.com,guest2@mail.ru',
          sendInvites: true
          );
          // Set desired color to the created event
          event.setColor(CalendarApp.EventColor.MAUVE);

          Logger.log('Event ID: ' + event.id);



          We have used creating event with options with a subsequent event coloring. It works for me (e-mails have been changed).






          share|improve this answer

























          • This is great, thank you! It works beautifully. I'm trying to add an extra email reminder to the events, according to this: developers.google.com/apps-script/reference/calendar/… My attempt here isn't affecting the reminders on the event. Can you see what I've missed? var minutesBefore = 40320 var calendar = CalendarApp.getCalendarById('example@gmail.com'); var event = calendar.createEvent(vEventName, start, end, guests: 'ex1@mail.com,ex@mail.com', sendInvites: true, addEmailReminder: (minutesBefore) );

            – Adrienne
            Mar 27 at 16:48












          • You are right about the above link. But you can add reminders only for ready CalendarEvent object. You are wrong to include it in options on creating stage. Similar to coloring write: event.addEmailReminder(minutesBefore);

            – Александр Ермолин
            Mar 27 at 18:49











          • That worked! Thank you so very much for your help. Your inserted comments in the code were really helpful, too. I think I've learned a few things. =)

            – Adrienne
            Mar 27 at 19:11










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55367014%2fhow-do-i-fix-this-script-in-google-apps-script-to-create-a-calendar-event-with-i%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Consider the following code:



          function createEvent() 
          var vSS = SpreadsheetApp.getActiveSpreadsheet();
          var vS = vSS.getActiveSheet();
          var vEventName = vS.getRange("M5").getValue();
          // M6 and H3 cells should contain valid dates
          var start = vS.getRange("M6").getValue();
          var end = vS.getRange("H3").getValue();
          var calendar = CalendarApp.getCalendarById('example@gmail.com');
          // Creating event with options (guests list)
          var event = calendar.createEvent(vEventName, start, end,
          // a comma-separated list of email addresses that should be added as guests
          guests: 'guest1@gmail.com,guest2@mail.ru',
          sendInvites: true
          );
          // Set desired color to the created event
          event.setColor(CalendarApp.EventColor.MAUVE);

          Logger.log('Event ID: ' + event.id);



          We have used creating event with options with a subsequent event coloring. It works for me (e-mails have been changed).






          share|improve this answer

























          • This is great, thank you! It works beautifully. I'm trying to add an extra email reminder to the events, according to this: developers.google.com/apps-script/reference/calendar/… My attempt here isn't affecting the reminders on the event. Can you see what I've missed? var minutesBefore = 40320 var calendar = CalendarApp.getCalendarById('example@gmail.com'); var event = calendar.createEvent(vEventName, start, end, guests: 'ex1@mail.com,ex@mail.com', sendInvites: true, addEmailReminder: (minutesBefore) );

            – Adrienne
            Mar 27 at 16:48












          • You are right about the above link. But you can add reminders only for ready CalendarEvent object. You are wrong to include it in options on creating stage. Similar to coloring write: event.addEmailReminder(minutesBefore);

            – Александр Ермолин
            Mar 27 at 18:49











          • That worked! Thank you so very much for your help. Your inserted comments in the code were really helpful, too. I think I've learned a few things. =)

            – Adrienne
            Mar 27 at 19:11















          0














          Consider the following code:



          function createEvent() 
          var vSS = SpreadsheetApp.getActiveSpreadsheet();
          var vS = vSS.getActiveSheet();
          var vEventName = vS.getRange("M5").getValue();
          // M6 and H3 cells should contain valid dates
          var start = vS.getRange("M6").getValue();
          var end = vS.getRange("H3").getValue();
          var calendar = CalendarApp.getCalendarById('example@gmail.com');
          // Creating event with options (guests list)
          var event = calendar.createEvent(vEventName, start, end,
          // a comma-separated list of email addresses that should be added as guests
          guests: 'guest1@gmail.com,guest2@mail.ru',
          sendInvites: true
          );
          // Set desired color to the created event
          event.setColor(CalendarApp.EventColor.MAUVE);

          Logger.log('Event ID: ' + event.id);



          We have used creating event with options with a subsequent event coloring. It works for me (e-mails have been changed).






          share|improve this answer

























          • This is great, thank you! It works beautifully. I'm trying to add an extra email reminder to the events, according to this: developers.google.com/apps-script/reference/calendar/… My attempt here isn't affecting the reminders on the event. Can you see what I've missed? var minutesBefore = 40320 var calendar = CalendarApp.getCalendarById('example@gmail.com'); var event = calendar.createEvent(vEventName, start, end, guests: 'ex1@mail.com,ex@mail.com', sendInvites: true, addEmailReminder: (minutesBefore) );

            – Adrienne
            Mar 27 at 16:48












          • You are right about the above link. But you can add reminders only for ready CalendarEvent object. You are wrong to include it in options on creating stage. Similar to coloring write: event.addEmailReminder(minutesBefore);

            – Александр Ермолин
            Mar 27 at 18:49











          • That worked! Thank you so very much for your help. Your inserted comments in the code were really helpful, too. I think I've learned a few things. =)

            – Adrienne
            Mar 27 at 19:11













          0












          0








          0







          Consider the following code:



          function createEvent() 
          var vSS = SpreadsheetApp.getActiveSpreadsheet();
          var vS = vSS.getActiveSheet();
          var vEventName = vS.getRange("M5").getValue();
          // M6 and H3 cells should contain valid dates
          var start = vS.getRange("M6").getValue();
          var end = vS.getRange("H3").getValue();
          var calendar = CalendarApp.getCalendarById('example@gmail.com');
          // Creating event with options (guests list)
          var event = calendar.createEvent(vEventName, start, end,
          // a comma-separated list of email addresses that should be added as guests
          guests: 'guest1@gmail.com,guest2@mail.ru',
          sendInvites: true
          );
          // Set desired color to the created event
          event.setColor(CalendarApp.EventColor.MAUVE);

          Logger.log('Event ID: ' + event.id);



          We have used creating event with options with a subsequent event coloring. It works for me (e-mails have been changed).






          share|improve this answer













          Consider the following code:



          function createEvent() 
          var vSS = SpreadsheetApp.getActiveSpreadsheet();
          var vS = vSS.getActiveSheet();
          var vEventName = vS.getRange("M5").getValue();
          // M6 and H3 cells should contain valid dates
          var start = vS.getRange("M6").getValue();
          var end = vS.getRange("H3").getValue();
          var calendar = CalendarApp.getCalendarById('example@gmail.com');
          // Creating event with options (guests list)
          var event = calendar.createEvent(vEventName, start, end,
          // a comma-separated list of email addresses that should be added as guests
          guests: 'guest1@gmail.com,guest2@mail.ru',
          sendInvites: true
          );
          // Set desired color to the created event
          event.setColor(CalendarApp.EventColor.MAUVE);

          Logger.log('Event ID: ' + event.id);



          We have used creating event with options with a subsequent event coloring. It works for me (e-mails have been changed).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 27 at 7:35









          Александр ЕрмолинАлександр Ермолин

          7453 silver badges8 bronze badges




          7453 silver badges8 bronze badges















          • This is great, thank you! It works beautifully. I'm trying to add an extra email reminder to the events, according to this: developers.google.com/apps-script/reference/calendar/… My attempt here isn't affecting the reminders on the event. Can you see what I've missed? var minutesBefore = 40320 var calendar = CalendarApp.getCalendarById('example@gmail.com'); var event = calendar.createEvent(vEventName, start, end, guests: 'ex1@mail.com,ex@mail.com', sendInvites: true, addEmailReminder: (minutesBefore) );

            – Adrienne
            Mar 27 at 16:48












          • You are right about the above link. But you can add reminders only for ready CalendarEvent object. You are wrong to include it in options on creating stage. Similar to coloring write: event.addEmailReminder(minutesBefore);

            – Александр Ермолин
            Mar 27 at 18:49











          • That worked! Thank you so very much for your help. Your inserted comments in the code were really helpful, too. I think I've learned a few things. =)

            – Adrienne
            Mar 27 at 19:11

















          • This is great, thank you! It works beautifully. I'm trying to add an extra email reminder to the events, according to this: developers.google.com/apps-script/reference/calendar/… My attempt here isn't affecting the reminders on the event. Can you see what I've missed? var minutesBefore = 40320 var calendar = CalendarApp.getCalendarById('example@gmail.com'); var event = calendar.createEvent(vEventName, start, end, guests: 'ex1@mail.com,ex@mail.com', sendInvites: true, addEmailReminder: (minutesBefore) );

            – Adrienne
            Mar 27 at 16:48












          • You are right about the above link. But you can add reminders only for ready CalendarEvent object. You are wrong to include it in options on creating stage. Similar to coloring write: event.addEmailReminder(minutesBefore);

            – Александр Ермолин
            Mar 27 at 18:49











          • That worked! Thank you so very much for your help. Your inserted comments in the code were really helpful, too. I think I've learned a few things. =)

            – Adrienne
            Mar 27 at 19:11
















          This is great, thank you! It works beautifully. I'm trying to add an extra email reminder to the events, according to this: developers.google.com/apps-script/reference/calendar/… My attempt here isn't affecting the reminders on the event. Can you see what I've missed? var minutesBefore = 40320 var calendar = CalendarApp.getCalendarById('example@gmail.com'); var event = calendar.createEvent(vEventName, start, end, guests: 'ex1@mail.com,ex@mail.com', sendInvites: true, addEmailReminder: (minutesBefore) );

          – Adrienne
          Mar 27 at 16:48






          This is great, thank you! It works beautifully. I'm trying to add an extra email reminder to the events, according to this: developers.google.com/apps-script/reference/calendar/… My attempt here isn't affecting the reminders on the event. Can you see what I've missed? var minutesBefore = 40320 var calendar = CalendarApp.getCalendarById('example@gmail.com'); var event = calendar.createEvent(vEventName, start, end, guests: 'ex1@mail.com,ex@mail.com', sendInvites: true, addEmailReminder: (minutesBefore) );

          – Adrienne
          Mar 27 at 16:48














          You are right about the above link. But you can add reminders only for ready CalendarEvent object. You are wrong to include it in options on creating stage. Similar to coloring write: event.addEmailReminder(minutesBefore);

          – Александр Ермолин
          Mar 27 at 18:49





          You are right about the above link. But you can add reminders only for ready CalendarEvent object. You are wrong to include it in options on creating stage. Similar to coloring write: event.addEmailReminder(minutesBefore);

          – Александр Ермолин
          Mar 27 at 18:49













          That worked! Thank you so very much for your help. Your inserted comments in the code were really helpful, too. I think I've learned a few things. =)

          – Adrienne
          Mar 27 at 19:11





          That worked! Thank you so very much for your help. Your inserted comments in the code were really helpful, too. I think I've learned a few things. =)

          – Adrienne
          Mar 27 at 19:11








          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55367014%2fhow-do-i-fix-this-script-in-google-apps-script-to-create-a-calendar-event-with-i%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript