deleting a periodic appointment with a "delete exception"

  • Thread starter Thread starter Hans Baumann
  • Start date Start date
H

Hans Baumann

Hi everyone,

I'm developing an Outlook plug-in to sync appointments from a database,
everything goes OK, but when I try to delete an appointment at runtime (with
code), it generates an error. The strange part is that it only happens with
appointments with a "delete exception".

Anybody knows what should be done before trying to delete that object? I'm
in a hurry, please!! any leads to solve this problem?

I'm coding in VS.net 2003, and the add-in is running under outlook 2003 (I
don't care older versions of outlook)

Thanks in advance
Hans.
 
Another clue, if I try to delete an appointment in Outlook, it asks me if I
want to delete all the serie or just that "exception", and perhaps that's
why I can't delete at runtime, Is there a way to tell which apointment I
want to delete at runtime?
 
You could use the GetOccurrence method of the RecurrencePattern to see if
you can get that specific occurrence. If you can't get it that way you then
check the Exceptions collection of the RecurrencePattern. Each Exception
object in that collection has an OriginalDate property as well as a Deleted
Boolean property. That should be enough for you to get at the correct item.
 
Back
Top