I am trying to add exceptionInfo for modifyed occurence to pst file. After opening the file with Outlook, everything is fine. But the description for modified occurence has not changed. I have the following code
MapiCalendarRecurrencePattern pattern = master.getRecurrence().getRecurrencePattern();
MapiCalendarExceptionInfo exceptionInfo = new MapiCalendarExceptionInfo();
exceptionInfo.setOriginalStartDate(modifiedOccurence.getStartDate());
exceptionInfo.setStartDateTime(modifiedOccurence.getStartDate());
if (modifiedOccurence.isAllDay()) {
exceptionInfo.setEndDateTime(modifiedOccurence.getStartDate());
} else {
exceptionInfo.setEndDateTime(modifiedOccurence.getEndDate());
}
exceptionInfo.setBody(modifiedOccurence.getBody());
exceptionInfo.setSubject(modifiedOccurence.getSubject());
exceptionInfo.setLocation(modifiedOccurence.getLocation());
exceptionInfo.setAttachments(modifiedOccurence.getAttachments());
pattern.getExceptions().addItem(exceptionInfo);
pattern.getModifiedInstanceDates().addItem(modifiedOccurence.getStartDate());
pattern.getDeletedInstanceDates().addItem(modifiedOccurence.getStartDate());
What could be the problem? Do I have a problem or a problem with the library?