Google drive spreadsheet and calendar invite guest -


okay, first of all, i'm trying updating google sheet , calendar simultaneously. so, let if there's update spreadsheet there update calendar. however, here's things failed do.

  1. if there's changes in calendar , there no changes in spreadsheet
  2. i'm unable find code invite guest calendar. far , know need to use " attendee[] " i'm unable find example show me on how done. i've found java code different if i'm not mistaken.

so, these order spreadsheet

date title start time end time location description guest eventid

this 1 code on google sheets.

function onopen() {   var sheet = spreadsheetapp.getactivespreadsheet();   var entries = [{     name : "export events",     functionname : "exportevents"   }];   sheet.addmenu("calendar actions ", entries); };   function exportevents() {   var sheet = spreadsheetapp.getactivesheet();   var headerrows = 1;     var range = sheet.getdatarange();   var data = range.getvalues();   var calid = "muiznn@gmail.com"; // calenderid   var cal = calendarapp.getcalendarbyid(calid);   (i in data) {     if (i < headerrows) continue;      var row = data[i];     var date = new date(row[0]);      var title = row[1];                var tstart = new date(row[2]);     tstart.setdate(date.getdate());     tstart.setmonth(date.getmonth());     tstart.setyear(date.getyear());     tstart.setminutes( tstart.getminutes() + 6)     var tstop = new date(row[3]);     tstop.setdate(date.getdate());     tstop.setmonth(date.getmonth());     tstop.setyear(date.getyear());     tstop.setminutes(tstop.getminutes() + 6)     var loc = row[4];     var desc = row[5];     var guest = row[6]     var id = row[7];                      try      {       var event = cal.geteventseriesbyid(id);       event.deleteeventseries();       row[7] = '';         }     catch (e) {      }      var newevent = cal.createevent(title, new date(tstart), new date(tstop), {description:desc,location:loc}).getid();     row[7] = newevent;       debugger;     }    range.setvalues(data); } 

if possible , guidance on , since i'm stuck.

for this, if want create new event each new entry in spread sheet use calender class , create event.

if want edit created event , add new guests use calendarevent class , add guests.

hope helps!


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -