davepar / gcalendarsync

Apps Script for syncing a Google Spreadsheet with Google Calendar
MIT License
161 stars 46 forks source link

Adding Columns? #51

Open MikeCHughes opened 5 years ago

MikeCHughes commented 5 years ago

Hi Dave,

First thanks for this script, it is brilliant and simple to use. However, I have tried to add a column and can't get it to work. I should point out that I am not good with JavaScript.

I added a column called "Stand" and in the "var titleRowMap" section added the line "'stand': 'Stand'," Then I added "'stand': calEvent.getStand()," in the "function convertCalEvent(calEvent)" along with similar (what I believe to be relevant) references in the "var convertedCalEvent" and "function updateEvent(calEvent, sheetEvent)" sections. But when I run the "Calendar Sync" I get the error message "TypeError: Cannot find function getStand in object CalendarEvent."

I have tried redoing the references a couple of times in case I got something wrong with the syntax plus I even tried moving the statements about in the lists just in case, but it makes no difference.

Any idea what I am doing wrong please - a loop that needs amending perhaps?