Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / January 2004

Tip: Looking for answers? Try searching our database.

Delete recurring appointment with MAPI DeleteMessages()?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 28 Jan 2004 20:56 GMT
Whenever I try and delete a recurring appointment item using
IMAPIFolder::DeleteMessages() it fails with this error:

MAPI_W_PARTIAL_COMPLETION

The item is not deleted, and none of the ocurrences are deleted
either.  I'm just trying to delete the entire item.  I am able to use
the same code to delete any other item, just not recurring appointment
items.  Do I need to do something special to delete them, maybe remove
the IsRecurring (whatever MAPI property it maps to) flag first?

I notice I am able to delete these items using Outlook Spy's
IMAPIFolder GUI.  I view the "Contents Table" tab and then click the
"delete" button, and it removes it without any errors.  Maybe I'll try
MDBView also since that lets me get to a bit lower level...  If anyone
has a "tested" (or documented) answer that would be appreciated
though, and safer than me just trying something new.
Dmitry Streblechenko \(MVP\) - 28 Jan 2004 21:39 GMT
Make sure there are no outstanding references to the appointment or any of
its subobjects (attachments, etc).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Whenever I try and delete a recurring appointment item using
> IMAPIFolder::DeleteMessages() it fails with this error:
[quoted text clipped - 13 lines]
> has a "tested" (or documented) answer that would be appreciated
> though, and safer than me just trying something new.
Eric - 29 Jan 2004 15:23 GMT
Thanks, in this case it ended up being that I was using PR_RECORD_KEY
by mistake, instead of PR_ENTRYID, to try and delete the item.  With
Exchange folders those two keys are very similar, and it slipped past
me in the debugger, until I switched over to a non-exchange folder and
noticed what I thought was the entryid was only 4 bytes long =)

> Make sure there are no outstanding references to the appointment or any of
> its subobjects (attachments, etc).
[quoted text clipped - 21 lines]
> > has a "tested" (or documented) answer that would be appreciated
> > though, and safer than me just trying something new.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.