Synchronize Outlook Appointment

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
 
K

Ken Slovak - [MVP - Outlook]

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

czkiam

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 
D

Dan Mitchell

=?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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top