Check event exists into another calendar

13 views
Skip to first unread message

Marco Schiavo

unread,
Oct 2, 2024, 1:57:43 AMOct 2
to Google Apps Script Community
Hi all, 
i've 2 different calendar (A nad B) share with my account. 
In calendar A I am generally a viewer where events are shared with me.

In calendar B I want to replicate calendar A. I have already created the script that every night deletes all events of calendar B and copies everything from calendar A.
However, I would like to make it more smart and check if an event of A exists in B. If so, I skip it, if not, I create it.
However, if it exists but has been updated in A, I also update it in B.
Is there a way to do all this checking? Does it make sense?

I hope I explained the problem correctly.
Thank you very much
Reply all
Reply to author
Forward
0 new messages