Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reoccurring events duplicated in Outlook do not sync with reoccurrence #220

Open
watercrossing opened this issue Jun 27, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@watercrossing
Copy link

I have got multiple reoccuring events in Outlook that do not sync to google correctly. Neither using GAS-ICS-Sync, or Google Calendar sync natively.

These events were created by duplicating an existing reoccuring event in Outlook (right click + drag the event, then select copy). I did this so that the meetings retain their Teams link (i.e. the following meeting will have the same chat as the old meeting).

Steps to reproduce in Outlook

  • Create event, say 30min, make it reoccuring (for example weekly, end after 2 occurrences)
  • right click + drag the event to perhaps 30min later, then select copy
  • Make this newly created event also reoccuring
  • Both GAS-ICS-Sync and Google calendar sync will fail to sync the reoccurence of the second event.

Example ICS

Something seems to be wrong with the ICS. The second reoccuring event has a RECURRENCE-ID that links it to the first one, even though they should just be separate events. Is this something that can be fixed / worked-around in GAS-ICS-Sync?

@watercrossing watercrossing added the bug Something isn't working label Jun 27, 2021
@derekantrican
Copy link
Owner

Thanks for reporting. I would imagine that is a bug with Outlook. I'll report it to them and let you know if there are any updates.

@jonas0b1011001
Copy link
Collaborator

Add event.removeProperty('recurrence-id'); after line 439 in Helpers.gs
Bildschirmfoto 2021-06-30 um 21 18 27

@watercrossing
Copy link
Author

Add event.removeProperty('recurrence-id'); after line 439 in Helpers.gs

This creates a toggle scenario, where on first sync the 11:30 event on the 8th appears, but on second sync the event gets deleted again.
image

@jonas0b1011001
Copy link
Collaborator

True, sorry for that. We have to remove the property at an earlier stage.

Undo the change from above and add

if (event.hasProperty('recurrence-id') && (event.hasProperty('rrule') || event.hasProperty('rdate'))){
      event.removeProperty('recurrence-id');
}

after line 171 in Helpers.gs

@watercrossing
Copy link
Author

Thank you @jonas0b1011001 , that seems to have done the trick. My Google calendar just got much busier!
While clearly a bug with Exchange/Outlook/Microsoft, I wonder if merging this into GAS-ICS-Sync is possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants