14

I have a url of a calendar https://longurl.ics that I successfully subscribed into google calendar. My issue is that sometimes, it takes a few days to synchronize events from the url calendar to google.

Is there a way to force the update with google app scripts?... I've beeen looking into the documentation and the web with no luck so far...

AMolina
  • 1,355
  • 1
  • 7
  • 17
kurokirasama
  • 737
  • 8
  • 31
  • When you say you want to update the calendar, do you mean as if you refresh the page? to see the currently active events? Also, what do you mean when you say subscribing the url to the calendar? what is your overall intention with the code? – AMolina Jun 19 '19 at 13:59
  • Hello, In google calendar you can suscribe to an external calendar via url. So events in this external calendar appear in google calendar in its own individual calendar. Google seems to update/sync the info of that calendar into google calendar once a day, but sometimes it doesn't. What I want is to force that updata/sync (i.e. read the external calendar info) on a specific time... – kurokirasama Jun 20 '19 at 14:14
  • Can you add any details like: code used, error problem encountered? [How do I ask a good question?](http://stackoverflow.com/help/how-to-ask), [How to create a Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve) Show the community what you have tried. – Jessica Rodriguez Jun 20 '19 at 14:45
  • I see what you mean, you want to force that sync between the two different calendars. Are they both Google Calendars by the way? if so, a script could easily help with getting all the events from one to the other. If that's not the case, what are you using? – AMolina Jun 20 '19 at 15:13
  • Hello, I'm syncing with office calendar (work). I do not have a code yet because I even haven't found a command that allows me to do what i want. – kurokirasama Jun 21 '19 at 15:03
  • @kurokirasama I’ve found in the [documentation to subscribe to calendars](https://support.google.com/calendar/answer/37100?hl=en&ref_topic=1672445) that it takes about 12 hours for syncing with the linked external calendar. However, if you’re still experiencing longer waits I would suggest you open a direct GSuite support case, which you can do [here](https://support.google.com/a/answer/1047213?hl=en) – AMolina Jun 25 '19 at 09:35
  • cool, thanks! Yes, I also read that it should sync every 12 hours or so... But I don't have a Gsuite account xD T_T – kurokirasama Jun 25 '19 at 14:45

1 Answers1

15

I found this library on github that does exactly what i needed. I already have it running :D

GAS-ICS-Sync

kurokirasama
  • 737
  • 8
  • 31
  • was about to write my own until i found this. surprised nobodys has made a chrome extension or something to do this – K2xL Nov 02 '20 at 17:08