Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Monday, August 2, 2010 1:38 PM
Hi all,
I am trying to handle the Before Delete event of a recurring appointment. The before delete fires and all in working but, the problem is that I have no idea how to establish whether the user is trying to delete the series or just the occurrence within the series? Reason being that the dialog (Confirmation dialog - delete series or delete occurrence) only shows after the before delete event has fired.
Is there a way for get the selection made by the user, with regards to the confirmation dialog?
Can anyone please assist me in the matter?
Many thanks in advance.
Kind regards,
Regards Programm3r
Tuesday, August 3, 2010 6:25 AM ✅Answered
That event will fire only if the master activity is modified in any way, including deletion of an instance of a recurring activity. On the lwo level, only the master activity will be modified - deleted instance is nothign more than a flag that a particular instance must be skipped.
If the whole activity is deleted, ItemDelete even will fire (but it won't provide any details about the activity being deleted).
Dmitry Streblechenko (MVP)
http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Monday, August 2, 2010 9:51 PM
Have you tried to use Items.ItemChange to analyze the change after it's been made?Dmitry Streblechenko (MVP)
http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Tuesday, August 3, 2010 5:43 AM
Hi Dmitry,
Thank you for the response.
I declared a global variable:
private Outlook.Items _calendarItems;
I did handle the Items.ItemChange event:
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
this._calendarItems.ItemChange += new ItemsEvents_ItemChangeEventHandler(Items_ItemChange);
}
But after the deletion of the series, the event never fires! Thus, I am still in the dark about that exactly happened?
Any ideas?
Many thanks again.
Kind regards,
Regards Programm3r