Catch Save Appointment Event

Add-in Express™ Support Service
That's what is more important than anything else

Catch Save Appointment Event
How do I catch the "Save Appointment Event" in Outlook 
Johan Locke




Posts: 2
Joined: 2005-02-14
Hi Guys

A bit new to this.

I've created a special button to launch the creation of a new appointment.

1) How do I catch the event of saving an appointment? I need to call a web service after an appointment is created, or reopened and saved.

2) Also, is there a easy way to distinguish appointments that I created (launched from my button) from ones that was created using normal functionality?

Kind Regards
Johan Locke
Posted 01 Mar, 2005 05:38:28 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Johan.

1) You would use the Write event of Outlook.ItemEvents interface. The Write event occurs when an Outlook item is saved.

2) Try to use the Categories property of Outlook.AppointmentItem class to distinguish this.
Posted 01 Mar, 2005 06:54:42 Top
Johan Locke




Posts: 2
Joined: 2005-02-14
Hi Sergey

Thanx for the Category tip.

Now, slap me with a dead fish and call me pretty, but I have got absolutely no idea how I should add my custom handler for the "ItemEvents_WriteEventHandler" event.

Cheers
JL
Posted 01 Mar, 2005 07:47:37 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Ok Johan. I will send you the example by email.
Posted 01 Mar, 2005 08:03:09 Top