r/GoogleAppsScript • • Jan 31 '20

Create an ongoing script to automatically copy certain events from one Google calendar to another Google calendar

Hi,

I am trying to sync my work Google calendar to my personal Google calendar. I'd like to be able to automatically copy all work events EXCEPT for certain work events that start with a certain title (i.e., 'XYZ-') on an ongoing basis. For example, I have work events that all start with 'XYZ-'. The script would NOT copy these events to my personal Google calendar. Any help is appreciated. Thanks so much, will award coins! :)

6 Upvotes

16 comments sorted by

View all comments

7

u/smackjack3 Jan 31 '20

I actually wrote a little script to do this for a couple different work accounts I had. You can find the snippet here: https://gitlab.com/snippets/28854

Should help get ya started.

1

u/justkeepswimming555 Mar 28 '20

thanks so much! i will try it out (sorry for the late reply)

1

u/DAM9779 Sep 25 '23

Did you ever get to play around with this? I have a very similar problem and will start playing around with this to see if it can help with my issue.

1

u/justkeepswimming555 May 25 '24

hey! Sorry for the super late reply. I played around with it for a bit but never got it to completely work (I think due to the company's security settings). I don't work at that company any more so I never got back to it. hope you got your problem resolved! ❤

1

u/DAM9779 May 26 '24

I did thanks for replying.

1

u/justkeepswimming555 May 27 '24

oh yay!!!!! so happy for you 💕