Adding guests to calendar event by script without invites being sent -


what add guests google calendar events via script created without them being notified via invitation. tried addguest() function whenever added or getting invitation email.

is possible?

thank in advance.

best, phil

edit:

thanks answer. yes i'm sure there ere invites being sent. here relevant part of code:

for (i = 0; < events.length; ++i) {  if (events[i].getlocation().match("xyz") || events[i].gettitle().match("abc")) {events[i].setlocation(addabc) && events[i].addguest(mailxyz)}   } 

edit 2: verified again, invites indeed being sent out. here entire script, buti have no idea part might cause this:

function modifyappointments() {     var idabc = "idabc..."     // abc   var contactabc = contactsapp.getcontactbyid(idabc);   var addressabc = contactabc.getaddresses();      var addabc = addressabc[0].getaddress();   var mailsabc = contactabc.getemails();      var mailabc = mailsabc[0].getaddress();     var today = new date();   var start = new date();   var end = new date(start.gettime() +(500 * 60 * 60 * 24 * 7));    var events = calendarapp.getdefaultcalendar().getevents(start, end);       (i = 0; < events.length; ++i)    {     if (events[i].getlocation().match("abc") || events[i].getlocation().match("abc") || events[i].gettitle().match("abc") || events[i].gettitle().match("abc")) {events[i].setlocation(addabc) && events[i].addguest(mailabc)}       }  } 

edit 3: here screenshot of 1 of invites being sent. unfortunately in german:

screenshot of invite

if wonder why there such lage time between sending of invite , date time of appointment, used have larger time interval in script. shortened week in advance.

i've had @ this, , i'm absolutely positive code not sending invite. said, there's open issue @ https://code.google.com/p/google-apps-script-issues/issues/detail?id=574 because function does not send invite, , i've tested again myself, can rule out.

here's test function can copy , paste , place else's (invites never sent creator of event) email address new script , confirm .addguest() not culprit:

function myfunction() {    var email = 'another-persons-email-here';    var event = calendarapp.getdefaultcalendar().createalldayevent('apollo 11 landing',new date('november 20, 2014'));    event.addguest(email); } 

the remaining assumption other portion of script sending out invite (once again, not possible calendar service in script send invite).


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -