I need to get the master appointment of the meeting series, when an appointment instance is opened.
I have tried the following (currentAppointment variable is of type AppointmentItem)
DateTime sd = currentAppointment.GetRecurrencePattern().PatternStartDate;
DateTime st = currentAppointment.GetRecurrencePattern().StartTime;
AppointmentItem ai = currentAppointment.GetRecurrencePattern().GetOccurrence(sd+st.TimeOfDay);
However, while this gets me the first appointment in the series, it has a RecurrenceState of olApptOccurrence.
How can I get a reference to the olApptMaster - ie the meeting series?
AppointmentItem.Parent
will return the parent AppointmentItem
for the recurrence instances and exceptions.