Access appointment

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

Access appointment
How to get appointments organisator? 
Christian Havel

Posts: 181
Joined: 2010-12-30

with the following code I can read the name of the organizer of the current selected appointment:

Outlook.AppointmentItem appointMent = null;
appointMent = OutlookApp.ActiveExplorer().Selection.Item(1) as Outlook.AppointmentItem;
var organizer = appointMent.Organizer;

catch (Exception)
if (null != appointMent) Marshal.ReleaseComObject(appointMent);

Well, how do I get the organizaros properties e.g. the phonenumbers?
Posted 25 Jan, 2011 10:11:19 Top
Eugene Astafiev

Add-in Express team

Posts: 8540
Joined: 2007-07-25
Hi Christian,


First of all, please note that you don't release underlying COM objects (an active explorer object and selection objects). You can read more about this in the When to release COM objects in Office add-ins developed in .NET article on our technical blog.

Please try to search the organizer in the list of recipients (see the Recipients property of the AppointmentItem class in Outlook). By the way, the online documentation states the following:

To get assistance with host applications’ objects, their properties, and methods as well as help info, use the Object Browser. Go to the VBA environment (in the host application, choose menu Tools | Macro | Visual Basic Editor or just press {Alt+F11}), press {F2}, select the host application in the topmost combo and/or specify a search string in the search combo. Select a class /property /method and press {F1} to get the help topic that relates to the object.
.NET, Extended MAPI, Windows Phone & RT
Posted 25 Jan, 2011 10:53:24 Top