PC Review


Reply
Thread Tools Rate Thread

delete appointmentitem permanently using redemption

 
 
sd
Guest
Posts: n/a
 
      8th May 2009
hello

Is there any way to delete appointmentItem permanently using
redemption?Redemption.SafeAppointmentItem doesn't have delete
method.please provide a code snippet if possible.


Thanks


 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      8th May 2009
Make sure the item is saved so it has an EntryID, get the EntryID and use
that with an RDOSession object to call RDOSession.GetMessageFromID(). That
returns an RDOMail object, call that object's Delete() method.

' assume the Outlook appointment is oAppt:
If oAppt.Saved = False Then
oAppt.Save
End If

Dim id As String
id = oAppt.EntryID

Set oAppt = Nothing
Set oSafeAppt = Nothing

Set oRDO = CreateObject("Redemption.RDOSession")
oRDO.MAPIOBJECT = olApp.GetNameSpace("MAPI").MAPIOBJECT

Dim safMail As Redemption.RDOMail
Set safMail = oRDO.GetMessageFromID(id)
safMail.Delete


--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"sd" <(E-Mail Removed)> wrote in message
news:5e267549-96a0-4c57-bf48-(E-Mail Removed)...
> hello
>
> Is there any way to delete appointmentItem permanently using
> redemption?Redemption.SafeAppointmentItem doesn't have delete
> method.please provide a code snippet if possible.
>
>
> Thanks
>
>


 
Reply With Quote
 
sd
Guest
Posts: n/a
 
      11th May 2009
It worked ,Thanks Ken
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redemption access AppointmentItem Label from outlook entvex Microsoft Outlook VBA Programming 6 13th Apr 2010 12:01 PM
delete appointmentItem permanently using redemption s Microsoft Outlook 1 8th May 2009 03:03 PM
I cannot permanently delete emails from my delete folder.... RenewablePower Windows Vista Mail 1 2nd Dec 2008 06:25 PM
Macro to delete old AppointmentItem =?Utf-8?B?Y2xhdWRpb19zcGZj?= Microsoft Outlook VBA Programming 2 1st Apr 2005 07:15 PM
OL2003: Permanently delete implies permanently stay on server? Christian Dembowski Microsoft Outlook 4 3rd Dec 2003 10:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:57 PM.