Detecting an item move to Deleted Items folder 
Author Message
 Detecting an item move to Deleted Items folder

Is there a CDO event or Appointment item event that is called when the Appointment
Item is about to (or has been) moved to the Deleted Items folder? I have tried
using the Item_Write & Item_Close events in VBScript. I've also used the
ItemChange event in VBA. Outlook does not seam to call these events when the
appointment item is moved to the Deleted Items folder. This functionality is
critical in my application as I need to remove a database entry associated to the
appointment when it's marked for deletion.


Sun, 16 Nov 2003 05:29:14 GMT  
 Detecting an item move to Deleted Items folder
Use Folder.Items.ItemAdd event, where Folder is the deleted items folder. If
however user presses Shift-Delete, the messages do not go to the Deleted Items
folder and you are out of luck

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


Is there a CDO event or Appointment item event that is called when the
Appointment
Item is about to (or has been) moved to the Deleted Items folder? I have tried
using the Item_Write & Item_Close events in VBScript. I've also used the
ItemChange event in VBA. Outlook does not seam to call these events when the
appointment item is moved to the Deleted Items folder. This functionality is
critical in my application as I need to remove a database entry associated to
the
appointment when it's marked for deletion.



Sun, 16 Nov 2003 06:10:02 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Programmatically delete an item from the Sent Items Folder

2. Extra copy of moved mailitem appears in Deleted Items folder

3. Programmatically delete Deleted Items folder once a day

4. Delete without going to deleted items folder !

5. Howto trap MAPIFolder.Items.ItemAdd on Sent Items Folder

6. Explorer-like interface to Outlook items with mixed type items in a folder

7. Removal of attachments on email items in Sent items folder

8. Move Selected Mail Items to Public Folder

9. moving items between folders

10. Programmatically delete an item from the Sent items

11. Moving appointment items from one folder to another in Exchange

12. Outlook 97 Vbscript to move each item in a collection to new folder

 

 
Powered by phpBB® Forum Software