DAV: How To Add Recurrence to a Single Appointment
The following PROPPATCH will add indefinite weekly recurrence to an individual appointment…
There are several things are several things to note about this PROPPATCH:
“http://schemas.microsoft.com/mapi/recurtype” is a previously undocumented property that is used by Outlook to properly display the recurrence type in the “Active Appointments” calendar folder view. It takes the following values:
0 = Single
1 = Daily
2 = Weekly
3 = Monthly
4 = Yearly
“urn:schemas:calendar/timezoneid” is a required field to be submitted, even if it already exists on the appointment item. You will need to “pre-fetch” the timezoneid so that you can resubmit it with this PROPPATCH.
** You might not have the timezoneid property on your item rather a property named timezone. In this case you can “pre-fetch” timzone and submit that instead of timezoneid. For more information on these properties, click here.
** If the original item was created in Outlook, you might not have either timezone or timezoneid. Currently we have not identified a MAPI property that maps directly to one of these properties. However, you could “pre-fetch” the “http://schemas.microsoft.com/mapi/timezonedesc” property and use its value to map it to the corresponding timezoneid or timezone.
“http://schemas.microsoft.com/exchange/patternend” is required for the recurrence to be displayed properly in OWA. Without this property the recurrence will probably work fine in Outlook but it will not be expanded the appropriate number of times in OWA. Yes, you have to calculate what the end date would be if you are only doing a finite number of recurrences. If you have a hard end date just set that and the pattern will end on the last day within that end date.