Using Classic Outlook on Windows for personal email, calendar, and contact management
Can anyone please provide guidance on my earlier post. When I run it, it begin, refers to my update to the line 28 change I made and then ends. But does not appear to by syncing Outlook calendar into Google. Based on others who have made it work, I presume it is something I have done. Can you please spell out exactly how the edited lines should look - eg - do I delete anything if not used? Any guidance ASAP would be much appreciated as I really need to get this sync happening.
Thanks,
Here is my edit of the script. I am using one URL (modified for sharing here) for the Outlook calendar where the information is pulled from and a name for the Google calendar which is created on the Google side.
*========================================= * SETTINGS*========================================= */
var sourceCalendars = [ // The ics/ical urls that you want to get events from along with their target calendars (list a new row for each mapping of ICS url to Google Calendar) // For instance: ["https://p24-calendars.icloud.com/holidays/us_en.ics", "US Holidays"]// Or with colors following mapping https://developers.google.com/apps-script/reference/calendar/event-color,// for instance: ["https://p24-calendars.icloud.com/holidays/us_en.ics", "US Holidays", "11"]["https://outlook.office365.com/owa/calendar/******@sample.com/1234567890/calendar.ics", "Name-of-Calendar-in-Google", 11]];
I removed these two lines:
["icsUrl2", "targetCalendar2"], ["icsUrl3", "targetCalendar3"]
I don't think you can go from Google back to Outlook and I would remove this line:
["https://calendar.google.com/calendar/embed?src=??mygooglefilename??", "Al from Oz"]
Why don't you start fresh and only modify the following line with your Outlook ICS URL and a calendar name for Google:
["icsUrl1", "targetCalendar1"]
Remove the next two lines:
["icsUrl2", "targetCalendar2"], ["icsUrl3", "targetCalendar3"]
Make sure the the next line remains intact:
];
Hope this works.