deleting a periodic appointment with a "delete exception"

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

Hans Baumann

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

Ken Slovak - [MVP - Outlook]

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.
 

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