![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
I deleted an AppoitmentItem using the Outlook GUI. But still I can get the
AppointmentItem with the NameSpace.GetItemFromID() method. I guessed the method should have returned a null value but I was wrong. Then, how can I detect whether an AppointmentItem with the speciied EntryID has been deleted by using the GUI? |
#2
|
|||
|
|||
![]()
Deleting the item just moved it to the Deleted Items folder. It has the same EntryID there that it did in its original location. Check the Parent property of the item that GetItemFromID returns.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "OctopusThu" wrote in message ... I deleted an AppoitmentItem using the Outlook GUI. But still I can get the AppointmentItem with the NameSpace.GetItemFromID() method. I guessed the method should have returned a null value but I was wrong. Then, how can I detect whether an AppointmentItem with the speciied EntryID has been deleted by using the GUI? |
#3
|
|||
|
|||
![]()
Thank you, Sue.
I can now cast the item.Parent property to an Outlook.MAPIFolder object, and compare its EntryID with the former folder's EntryID, so as to determine whether the item has been deleted. Do you have some more safer/smarter method to do this? "Sue Mosher [MVP-Outlook]" wrote: Deleting the item just moved it to the Deleted Items folder. It has the same EntryID there that it did in its original location. Check the Parent property of the item that GetItemFromID returns. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "OctopusThu" wrote in message ... I deleted an AppoitmentItem using the Outlook GUI. But still I can get the AppointmentItem with the NameSpace.GetItemFromID() method. I guessed the method should have returned a null value but I was wrong. Then, how can I detect whether an AppointmentItem with the speciied EntryID has been deleted by using the GUI? |
#4
|
|||
|
|||
![]()
That sounds like a good approach.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "OctopusThu" wrote in message ... Thank you, Sue. I can now cast the item.Parent property to an Outlook.MAPIFolder object, and compare its EntryID with the former folder's EntryID, so as to determine whether the item has been deleted. Do you have some more safer/smarter method to do this? "Sue Mosher [MVP-Outlook]" wrote: Deleting the item just moved it to the Deleted Items folder. It has the same EntryID there that it did in its original location. Check the Parent property of the item that GetItemFromID returns. "OctopusThu" wrote in message ... I deleted an AppoitmentItem using the Outlook GUI. But still I can get the AppointmentItem with the NameSpace.GetItemFromID() method. I guessed the method should have returned a null value but I was wrong. Then, how can I detect whether an AppointmentItem with the speciied EntryID has been deleted by using the GUI? |
#5
|
|||
|
|||
![]()
Although comparing EntryID properties without using a special procedure
(like CompareEntryIDs in CDO or Redemption) can fail, especially for items where you can get short or long term id's. And when an item is deleted from an Exchange mailbox the EntryID on the item changes. It does not change when deleted in a PST file. I'd probably use ItemAdd on the Items collection of the Deleted Items folder. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Sue Mosher [MVP-Outlook]" wrote in message ... That sounds like a good approach. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "OctopusThu" wrote in message ... Thank you, Sue. I can now cast the item.Parent property to an Outlook.MAPIFolder object, and compare its EntryID with the former folder's EntryID, so as to determine whether the item has been deleted. Do you have some more safer/smarter method to do this? |
#6
|
|||
|
|||
![]()
What is the "ItemAdd" that you mentioned?
And how to get the deleted Items folder? Are all the deleted Items in the same folder? For example, the deleted AppointItems and MailItems. "Ken Slovak - [MVP - Outlook]" wrote: Although comparing EntryID properties without using a special procedure (like CompareEntryIDs in CDO or Redemption) can fail, especially for items where you can get short or long term id's. And when an item is deleted from an Exchange mailbox the EntryID on the item changes. It does not change when deleted in a PST file. I'd probably use ItemAdd on the Items collection of the Deleted Items folder. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Sue Mosher [MVP-Outlook]" wrote in message ... That sounds like a good approach. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "OctopusThu" wrote in message ... Thank you, Sue. I can now cast the item.Parent property to an Outlook.MAPIFolder object, and compare its EntryID with the former folder's EntryID, so as to determine whether the item has been deleted. Do you have some more safer/smarter method to do this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to find Contacts deleted during Detect & Repair? | Janet J | Outlook - Using Contacts | 1 | October 9th 06 09:03 PM |
How to retrieve calendar from deleted desktop user | bcptime | Outlook - Calandaring | 1 | September 14th 06 04:15 PM |
Recovering Emails after a user has been deleted | [email protected] | Outlook Express | 4 | August 12th 06 01:19 AM |
Notifications still sent to deleted user | [email protected] | Outlook - Calandaring | 2 | July 10th 06 10:32 AM |
Detect other user viewing calendar items | [email protected] | Outlook and VBA | 1 | April 20th 06 09:00 PM |