Synchronize Outlook Appointment

  • Thread starter Thread starter czkiam
  • Start date Start date
C

czkiam

Hi,



I'm trying to perform Synchronization between my application and outlook
default calendar (which mimic the behavior like ActiveSync)



I have face the difficultly on update the appointment with recurrence pattern.



let said,

I have a appointment with daily recurrence (10 occurrences) in outlook, one
of the occurrence has been changed.
I have a appointment with daily recurrence (10 occurrences) in my
application, one of the occurrence has been deleted.
assume, i keep the outlook entryID in my application.



so, when i tried to compare and update the appointment in outlook, how can i
update the outlook appointment to follow the same recurrence pattern with my
application (include the deleted ocurrence)?



any solution on this?



thanks.

czkiam
 
You have to get the RecurrencePattern of the recurring item, then examine
the Exceptions collection. That holds all exceptions and deleted instances.
 
HI,

The Exceptions property is readonly.

Let said, i want to replace the recurrencePattern as my application
recurrencePatter with the deleted occurrence.

how can i make it?

thanks

Best regards,
czkiam
 
Yes, Exceptions is read-only, so what?

If you change one of the items in the recurring series you will effectively
change the Exceptions collection by adding that changed item to that
collection. Same thing if you delete an occurrence.

You asked how to follow a recurrence pattern and that's how you do it. You
check each occurrence, get the next occurrence by implementing code to
figure out the next period and if you don't get the next item that way you
then check Exceptions to see if that occurrence is there.

You can't replace the recurrence pattern with one of your own design, if
that's what you're asking, Outlook wouldn't have a clue about that. If you
want to track occurrences to find exceptions you use the methods I mentioned
and check Exceptions. Otherwise I don't understand what you're asking for.
 
=?Utf-8?B?Y3praWFt?= said:
Let said, i want to replace the recurrencePattern as my application
recurrencePatter with the deleted occurrence.

how can i make it?

Possibly I'm missing something, but you should be able to just find the
instance that's been deleted in your app (using date restriction on the
old date or whatever), then tell Outlook to delete that instance. Outlook
will then update the exceptions correctly.

-- dan
 
Back
Top