'How to create appointment exception from recurring series?

How to create appointment exception from recurring series using the EWS API? I checked all documentation, and could not find that information.

Appointment occurrence = Appointment.BindToOccurrence(service, new ItemId(sRecurringMasterId), 3)

It is for already existed exception, but how to create one and connect to the recurrent master?



Solution 1:[1]

It is for already existed exception, but how to create one and connect to the recurrent master?

You don't create exceptions directly, all you need to do is bind to the Occurrence then modify the occurrence see https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-update-a-recurring-series-by-using-ews. If you modify the date or any other properties when you update the occurrence it will create an exception for you. Basically the way it work is this modifies the Master instance in some case the exception will be a hidden attachment on the underlying master item in others case (depending on what properties you change) it will just modify the recurrence blob https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/how-to-read-and-parse-a-recurrence-pattern.

You can't link another appointment you create as an exception because of the above reason its just a standalone appointment (or store item).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Glen Scales