Single source Google Calendar to be split into multiple calendars #461
-
I have a single source Google calendar that I want to split out into multiple Google calendars based on certain keywords. The source calendar is based on a subscription URL to a golf management application which has a calendar of events. Each event contains a prefix in the title for the section of the golf club that they relate to ie. Men's, Ladies, Seniors etc. followed by the type of competition. As an example "Seniors' Texas Scramble". The source calendar is not provided by section so this needs to be split up into multiple calendars so that members can subscribe just to the calendar they are interested in. This could be done using a filter with key words ie. 'Seniors' to create a separate Google calendar. Has anyone created anything similar to this..? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 44 replies
-
If you switch to the settings-v2 branch, you can accomplish this. Just list your source calendar multiple times, apply different filters to each entry, and different target calendar to each entry, and you're good to go. |
Beta Was this translation helpful? Give feedback.
-
Thanks again. I've included a link to the script below: |
Beta Was this translation helpful? Give feedback.
-
First, make sure the filter identifiers are unique, you currently have two filters named Add |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I do something similar for my kids' activities. I have a calendar for each kid, then I give people (grandparents, etc.) permission in the calendar settings in google in the "Share with specific people or groups" section. Just specify the recipient email address and they will get notified to subscribe to the calendar. You could also make it Publicly sharable so you don't have to admin the user list (there's a check box for "Make available to public"). For your comment about entries back to the beginning of the year, I checked the ics for Seniors and it looks like it only contains future events... so the script is behaving correctly. You might see if your source can enable past events if those are needed. |
Beta Was this translation helpful? Give feedback.
-
Don't forget to revert the sharing settings of your script. |
Beta Was this translation helpful? Give feedback.
-
I am noticing that I get a failed run every other 'time driven' run. Although I've set the time to '15' minutes, it seems to attempt an earlier time then fails. the '15' minute run seems to complete as expected. I am running this under the '[email protected]' login. |
Beta Was this translation helpful? Give feedback.
If you switch to the settings-v2 branch, you can accomplish this. Just list your source calendar multiple times, apply different filters to each entry, and different target calendar to each entry, and you're good to go.