Recurring appointment every 5 years


This maybe very simple, but I can’t seem to be able to create the attached. I’m having trouble getting the appointment to occur every 5 years.

I’ve taken a look at the [following]( and I assume the period 12 is 12 months, when I look at the RRULE the interval is 5.

Any help or pointers would be much appreciated.


Hi Ashley,

You may please use Period = 60, for creating a recurring appointment after every 5 years. Following sample can be used to fulfill the requirement. Could you please give it a try and let us know the feedback?

Snapshot of the output appointment is attached here for your reference. Please note that I have used a valid license during the testing.

DateTime StartDate = new DateTime(2015, 9, 9, 9, 0, 0);
DateTime endByDate = new DateTime(2015, 9, 30, 9, 5, 0);
MapiCalendar appointment = new MapiCalendar("Location", "Yearly Occurrences CHECK", "Description", StartDate, endByDate);
MapiCalendarEventRecurrence mapiCalendarEventRecurrence = new MapiCalendarEventRecurrence();

var rec = new MapiCalendarMonthlyRecurrencePattern
    PatternType = MapiCalendarRecurrencePatternType.Month,
    Period = 60,
    WeekStartDay = DayOfWeek.Sunday,
    EndType = MapiCalendarRecurrenceEndType.NeverEnd,

mapiCalendarEventRecurrence.RecurrencePattern = rec;
appointment.Recurrence = mapiCalendarEventRecurrence;
appointment.Save(path + "Output.ics",AppointmentSaveFormat.Ics);
appointment.Save(path + "Output.msg", AppointmentSaveFormat.Msg);

Thanks, I don’t know how I missed that one.

Thanks again.

Hi Ashley,

Than you for providing feedback.