How to: Get the Organizer of a Meeting

Office 2013 and later

This example shows how to programmatically return the organizer of a meeting.

Programming Applications for Office Outlook 2007

The following code example is an excerpt from Programming Applications for Microsoft Office Outlook 2007, from Microsoft Press (ISBN 9780735622494, copyright Microsoft Press 2007, all rights reserved).

Buy this book

Sample chapters

In the following code example, GetMeetingOrganizer takes a parameter of type AppointmentItem that represents a meeting, and uses the PropertyAccessor object and the GetProperty(String) method to obtain the EntryID for the AppointmentItem object. Once the EntryID is obtained, the example uses the GetAddressEntryFromID(String) method to return the AddressEntry object that represents the organizer of the meeting.

If you use Visual Studio to test this code example, you must first add a reference to the Microsoft Outlook 15.0 Object Library component and specify the Outlook variable when you import the Microsoft.Office.Interop.Outlook namespace. The using statement must not occur directly before the functions in the code example but must be added before the public Class declaration. The following line of code shows how to do the import and assignment in C#.

using Outlook = Microsoft.Office.Interop.Outlook;
private Outlook.AddressEntry GetMeetingOrganizer(Outlook.AppointmentItem appt)
    if (appt == null)
        throw new ArgumentNullException();
    string organizerEntryID =
    Outlook.AddressEntry organizer =
    if (organizer != null)
        return organizer; 
        return null;

Other resources