Welcome to Lockergnome.com!
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

How to monitor deleted calendar events?

 
   Home -> Office -> Program Add-Ins RSS
Next:  Program Add-Ins: Adding an additional Notes folder when using Domino Connec..  
Author Message
Mark Beiley

External


Since: Jul 18, 2007
Posts: 7



(Msg. 1) Posted: Fri Jul 27, 2007 12:43 pm
Post subject: How to monitor deleted calendar events?
Archived from groups: microsoft>public>developer>outlook>addins, others (more info?)

Hello,

I'm wondering the best way to monitor when an event gets deleted from the
calendar? There doesn't seem to be a notification for this specific event.
Instead, I've been monitoring the "Deleted Items" folder for any events
being added to this folder. I track events based on their Entry ID. This
seems to work, but I've run into a case where the Entry ID changes for a
specific event between the time it is on the calendar, and when it gets
added into the deleted items folder. This only seems to happen when running
the calendar on an exchange server (and not all exchange servers, just one
so far that I know of). I really have 2 questions:

Are there any better ways to track if a calendar event gets deleted?

Why/how would the exchange server put an event with a different Entry ID
into the Deleted Items folder when a calendar event gets deleted?

Thanks,
Mark
--
Beiley Software
http://www.beiley.com
Back to top
Login to vote
lsmiranda

External


Since: Jul 28, 2007
Posts: 1



(Msg. 2) Posted: Sat Jul 28, 2007 1:30 pm
Post subject: Re: How to monitor deleted calendar events? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I believe I have read somewhere that EntryID is not guaranteed to stay
the same, if the item is moved to a different folder, and has an even
higher chance of being changed if the item is being moved to a new
Store. Are you using outlook 2003 or 2007? As 2007 now has exposed
more events, specifically related to Deletion of items.

On Jul 27, 3:43 pm, "Mark Beiley" <nowhere AT donotuse.com> wrote:
> Hello,
>
> I'm wondering the best way to monitor when an event gets deleted from the
> calendar? There doesn't seem to be a notification for this specific event.
> Instead, I've been monitoring the "Deleted Items" folder for any events
> being added to this folder. I track events based on their Entry ID. This
> seems to work, but I've run into a case where the Entry ID changes for a
> specific event between the time it is on the calendar, and when it gets
> added into the deleted items folder. This only seems to happen when running
> the calendar on an exchange server (and not all exchange servers, just one
> so far that I know of). I really have 2 questions:
>
> Are there any better ways to track if a calendar event gets deleted?
>
> Why/how would the exchange server put an event with a different Entry ID
> into the Deleted Items folder when a calendar event gets deleted?
>
> Thanks,
> Mark
> --
> Beiley Softwarehttp://www.beiley.com
Back to top
Login to vote
Mark Beiley

External


Since: Jul 18, 2007
Posts: 7



(Msg. 3) Posted: Sun Jul 29, 2007 10:24 am
Post subject: Re: How to monitor deleted calendar events? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the reply. My add-in needs to work on Outlook 2000, 2002, 2003,
and 2007, so I need
a way to find out when a calendar event is deleted for any of these
platforms.

Thanks,
Mark
--
Beiley Software
http://www.beiley.com



<lsmiranda.TakeThisOut@gmail.com> wrote in message
news:1185629409.243799.207660@q75g2000hsh.googlegroups.com...
>I believe I have read somewhere that EntryID is not guaranteed to stay
> the same, if the item is moved to a different folder, and has an even
> higher chance of being changed if the item is being moved to a new
> Store. Are you using outlook 2003 or 2007? As 2007 now has exposed
> more events, specifically related to Deletion of items.
>
> On Jul 27, 3:43 pm, "Mark Beiley" <nowhere AT donotuse.com> wrote:
>> Hello,
>>
>> I'm wondering the best way to monitor when an event gets deleted from the
>> calendar? There doesn't seem to be a notification for this specific
>> event.
>> Instead, I've been monitoring the "Deleted Items" folder for any events
>> being added to this folder. I track events based on their Entry ID.
>> This
>> seems to work, but I've run into a case where the Entry ID changes for a
>> specific event between the time it is on the calendar, and when it gets
>> added into the deleted items folder. This only seems to happen when
>> running
>> the calendar on an exchange server (and not all exchange servers, just
>> one
>> so far that I know of). I really have 2 questions:
>>
>> Are there any better ways to track if a calendar event gets deleted?
>>
>> Why/how would the exchange server put an event with a different Entry ID
>> into the Deleted Items folder when a calendar event gets deleted?
>>
>> Thanks,
>> Mark
>> --
>> Beiley Software
>> http://www.beiley.com
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 3213



(Msg. 4) Posted: Sun Jul 29, 2007 6:07 pm
Post subject: Re: How to monitor deleted calendar events? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

EntryID will change if an item is moved or deleted when using an Exchange
store provider. It doesn't change in those circumstances with a PST store
provider. If an item is moved to a different store EntryID always changes.

The best you'd be able to do is monitor the folder's ItemRemove event, which
fires after an item is deleted and doesn't point to the item, plus ItemAdd
on DeletedItems. If an item is hard deleted it won't go to Deleted Items.

If you have to monitor that you can only check which item or items are
missing from a list you maintain of the Items collection when you get
ItemRemove. That event won't fire if more than 16 items are deleted at once
or the last item in the folder is deleted. The only fix for those problems
is usually to use a timer to sweep the folder and see if anything was added
or is missing.

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


"Mark Beiley" <nowhere AT donotuse.com> wrote in message
news:eZZvRVg0HHA.600@TK2MSFTNGP05.phx.gbl...
> Thanks for the reply. My add-in needs to work on Outlook 2000, 2002,
> 2003, and 2007, so I need
> a way to find out when a calendar event is deleted for any of these
> platforms.
>
> Thanks,
> Mark
> --
> Beiley Software
> http://www.beiley.com
Back to top
Login to vote
Mark Beiley

External


Since: Jul 18, 2007
Posts: 7



(Msg. 5) Posted: Sun Jul 29, 2007 6:07 pm
Post subject: Re: How to monitor deleted calendar events? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Ken, that is very helpful. Do I understand correctly that the
EntryID will 'always' change when using an Exchange store? How do you
learn this? Is it documented somewhere, or do you just learn by
trial/error?

I will pursue the idea of monitoring ItemRemove and maintaining my own list
of items.

Thanks,
Mark
--
Beiley Software
http://www.beiley.com


"Ken Slovak - [MVP - Outlook]" <kenslovak.DeleteThis@mvps.org> wrote in message
news:ujstrzi0HHA.5764@TK2MSFTNGP03.phx.gbl...
> EntryID will change if an item is moved or deleted when using an Exchange
> store provider. It doesn't change in those circumstances with a PST store
> provider. If an item is moved to a different store EntryID always changes.
>
> The best you'd be able to do is monitor the folder's ItemRemove event,
> which fires after an item is deleted and doesn't point to the item, plus
> ItemAdd on DeletedItems. If an item is hard deleted it won't go to Deleted
> Items.
>
> If you have to monitor that you can only check which item or items are
> missing from a list you maintain of the Items collection when you get
> ItemRemove. That event won't fire if more than 16 items are deleted at
> once or the last item in the folder is deleted. The only fix for those
> problems is usually to use a timer to sweep the folder and see if anything
> was added or is missing.
>
> --
> 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
>
>
> "Mark Beiley" <nowhere AT donotuse.com> wrote in message
> news:eZZvRVg0HHA.600@TK2MSFTNGP05.phx.gbl...
>> Thanks for the reply. My add-in needs to work on Outlook 2000, 2002,
>> 2003, and 2007, so I need
>> a way to find out when a calendar event is deleted for any of these
>> platforms.
>>
>> Thanks,
>> Mark
>> --
>> Beiley Software
>> http://www.beiley.com
>
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 3213



(Msg. 6) Posted: Mon Jul 30, 2007 8:57 am
Post subject: Re: How to monitor deleted calendar events? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm not sure if it's documented anywhere and each store provider implements
its own behavior as to changing EntryID or not, my own knowledge of that is
from lots of experience.

Things are better with Outlook 2007, in that version you have a
Folder.BeforeItemMove event that fires before an item is moved or deleted
from a folder. That event passes you Item, MoveTo and Cancel arguments.
Cancel lets you cancel the action by setting it True, Item is the item the
action is being taken on and MoveTo will be null (Nothing) if the item is
being deleted. MoveTo will pass the destination folder if it's a move and
not a 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


"Mark Beiley" <nowhere AT donotuse.com> wrote in message
news:O9Hb5Yj0HHA.5380@TK2MSFTNGP04.phx.gbl...
> Thanks Ken, that is very helpful. Do I understand correctly that the
> EntryID will 'always' change when using an Exchange store? How do you
> learn this? Is it documented somewhere, or do you just learn by
> trial/error?
>
> I will pursue the idea of monitoring ItemRemove and maintaining my own
> list
> of items.
>
> Thanks,
> Mark
> --
> Beiley Software
> http://www.beiley.com
Back to top
Login to vote
Mark Beiley

External


Since: Jul 18, 2007
Posts: 7



(Msg. 7) Posted: Mon Jul 30, 2007 11:03 am
Post subject: Re: How to monitor deleted calendar events? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks again Ken. It is good to hear there are improvements available
in Outlook 2007. I'm going to have to stick with a solution that will
work for older versions too though...

Thanks,
Mark
--
Beiley Software
http://www.beiley.com



"Ken Slovak - [MVP - Outlook]" <kenslovak.RemoveThis@mvps.org> wrote in message
news:%237pHIuq0HHA.5764@TK2MSFTNGP03.phx.gbl...
> I'm not sure if it's documented anywhere and each store provider
> implements its own behavior as to changing EntryID or not, my own
> knowledge of that is from lots of experience.
>
> Things are better with Outlook 2007, in that version you have a
> Folder.BeforeItemMove event that fires before an item is moved or deleted
> from a folder. That event passes you Item, MoveTo and Cancel arguments.
> Cancel lets you cancel the action by setting it True, Item is the item the
> action is being taken on and MoveTo will be null (Nothing) if the item is
> being deleted. MoveTo will pass the destination folder if it's a move and
> not a 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
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 3213



(Msg. 8) Posted: Mon Jul 30, 2007 4:35 pm
Post subject: Re: How to monitor deleted calendar events? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes, most of my addins still have to support Outlook 2000 and up (a few for
2002 and up) so most of the neat new features that Randy added to the
Outlook object model don't do me any good either. It is nice when I get an
Outlook 2007-only addin though Smile

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


"Mark Beiley" <nowhere AT donotuse.com> wrote in message
news:uEIf5Pt0HHA.1212@TK2MSFTNGP05.phx.gbl...
> Thanks again Ken. It is good to hear there are improvements available
> in Outlook 2007. I'm going to have to stick with a solution that will
> work for older versions too though...
>
> Thanks,
> Mark
> --
> Beiley Software
> http://www.beiley.com
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Program Add-Ins All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 General
 Microsoft Windows XP
 Microsoft Windows Vista
 Microsoft Windows (other)
  Microsoft Office
 Microsoft Office (other)
 Computer Security
 Linux
 Movies


[ Contact us | Terms of Service/Privacy Policy ]