CalendarApp.getDefaultCalendar().createEvent(eventName+' - '+topicName, startDateTime,endDateTime,myObject);
Now, if I add another email address in the code shown below:
var myObject =
{
location: link[0][0],
guests: primaryUser[0][0],secondaryUser[0][0],
sendInvites: true
};
CalendarApp.getDefaultCalendar().createEvent(eventName+' - '+topicName, startDateTime,endDateTime,myObject);
This just adds only the primary user to the calendar event.
Please help
Regards,
Nabil