0
votes

Is there a way to get recurring events exceptions? For example I have a Google recurring event with no end date, and the user made an exception on one instance. In theory there is a countless number of instances. Is it possible to get only those that are changed? How to detect only changed instances?

This is needed for syncing with Outlook (in Outlook there is the possibility to get only exceptions from the rule).

Fetching google events with option singleEvent = true could return countless instances?

2

2 Answers

0
votes

If you give singleEvents="true", it gives all the instances of a recurring event in events.list. When you want to get only the exception, then in events.list don't give singleEvents="true", then you will find only recurring event(with out instances) and the exception too.

Here is the sample response. I tried in API explorer:

 summary": "Test recu",//recurring event
 "creator": {
  "email": "[email protected]",
 "displayName": "xxxxx",
 "self": true
},
"organizer": {
"email": "[email protected]",
"displayName": "xxxx",
"self": true
 },
   "start": {
 "dateTime": "2015-08-28T09:30:00-07:00",
"timeZone": "America/Los_Angeles"
 },
"end": {
 "dateTime": "2015-08-28T10:30:00-07:00",
"timeZone": "America/Los_Angeles"
   },
     "recurrence": [
    "RRULE:FREQ=WEEKLY;BYDAY=TH,FR"


summary": "Test recu",//changed instance that is exception
"creator": {
"email": "[email protected]",
"displayName": "xxxx",
"self": true
},
"organizer": {
"email": "[email protected]",
"displayName": "xxxx",
"self": true
},
"start": {
"dateTime": "2015-09-03T10:00:00-07:00",
"timeZone": "America/Los_Angeles"
},
"end": {
"dateTime": "2015-09-03T11:00:00-07:00",
"timeZone": "America/Los_Angeles"
},
0
votes

In the Outlook Object Model, the RecurrencePattern object exposes the Exceptions collection - see https://msdn.microsoft.com/en-us/library/office/ff869544.aspx