google apps script - Unable to create an event for calendar -


i trying create events dynamically based on data. able achieve using calendarapp. now, want add room event when event created. that, trying create event calendar of particular meeting room. calendar of meeting room using

calendarapp.getcalendarbyid(calendarid); 

however, unable create event it. above line able retrieve calendar(its not null). however, when try add event via calendar.createevent gives me error saying 'action not allowed'. have subscribed above calendar. have tried using calendar.calendars.get(calendarid); retrieve calendar , calendar.events.insert(event, calendarid); add event it. however, result same. missing? not have admin rights room's calendar. reason? if yes how solve it?

achieved subscribing calendar resource want book via calendar settings mail id going using , adding resource's mail id guest in invite. thank zig help!


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -