Avatar of atsj0
atsj0
Flag for Norway asked on

How can I catch C# event when saving Outlook appointment item?

I'm trying to catch the Save/send event when a new appointment item is beeing saved.
Using Visual Studio 2008, VSTO.
The Item_Send event does trigger for mailobject, but not for appointments.

Any idea how to fix that?
OutlookC#

Avatar of undefined
Last Comment
David Lee

8/22/2022 - Mon
David Lee

Hi, atsj0.

I am not a C# programmer so I cannot give you a code sample.  I can tell you what you need to do.  You need to monitor the events of the calendar folder's Items collection and trap the ItemAdd event.  This fires when an appointment is first added to the calendar.
atsj0

ASKER
Do you have a sample in another language? Ie. VB?
ASKER CERTIFIED SOLUTION
David Lee

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
atsj0

ASKER
I think this will do it.
Thanks a lot :)
Your help has saved me hundreds of hours of internet surfing.
fblack61
David Lee

You're welcome.