Hi,
Here is how, I am creating appointment and setting its recurrence:
appointment.Key = node.SelectSingleNode("ListURL").InnerText;
#region Create Appointment's Recurrence
// check any condition
appointment.CreateRecurrence();
recurrenceObject.Period = RecurrencePeriod.Weekly;
recurrenceObject.PeriodMultiple = 2;
}
#endregion
appointment.StartDateTime = this.StringToDate(node.SelectSingleNode("StartDate").InnerText);
appointment.EndDateTime = this.StringToDate(node.SelectSingleNode("_EndDate").InnerText);
// Add the Appointment to the Activities list in the context
((IList)context.Activities).Add(appointment);
I am also having same problem. Can anybody help us please?
I didn't see anything in the original post about implementing the FetchRecurrences method. Similar to FetchActivities, the Fetch method is fired when recurrences are needed too - passing a FetchRecurrencesContext and a "FetchRecurrences" operation. In my solution I populate the recurrences for the given context (Start Date, End Date, Resource), and then I call base.OnInitializeRecurrence on each recurrence object. This is something I pulled out of the IG implementation.
Other than that, the only other thing I'd confirm is that your recurrences are being created properly. If the recurrence data isn't set up properly you won't be able to fetch them properly.