Search code examples
winapioutlookcomoutlook-addin

Win32 - how to get event when new appointment or meeting is created in Outlook calendar


I am writing a COM based Addin for outlook to get the appointment or meeting list. I have written a code to get the list of appointments/meetings. Now I am trying to find out the event when new appointment or meeting is created. I have tried almost all events of AppointmentItem Object, but didn't get the proper event. Is there any way to programmatically get the event when user create a appointment or meeting in Outlook calendar?


Solution

  • You can try to use the ItemAdd event of the Items class. This event is fired when one or more items are added to the specified collection. This event does not run when a large number of items are added to the folder at once.

    Note, there is no event until the item is saved and the EntryID property is set.