A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to detect a user-deleted AppointmentItem?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 20th 06, 09:40 AM posted to microsoft.public.outlook.program_addins
OctopusThu
external usenet poster
 
Posts: 25
Default How to detect a user-deleted AppointmentItem?

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  
Old December 20th 06, 12:34 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to detect a user-deleted AppointmentItem?

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  
Old December 20th 06, 04:08 PM posted to microsoft.public.outlook.program_addins
OctopusThu
external usenet poster
 
Posts: 25
Default How to detect a user-deleted AppointmentItem?

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  
Old December 20th 06, 04:39 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to detect a user-deleted AppointmentItem?

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  
Old December 20th 06, 06:20 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to detect a user-deleted AppointmentItem?

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  
Old December 21st 06, 04:47 AM posted to microsoft.public.outlook.program_addins
OctopusThu
external usenet poster
 
Posts: 25
Default How to detect a user-deleted AppointmentItem?

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
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 11:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.