'Detecting email address of the owner of an appointment in a delegate calendar

Is it possible to always find the email address owner of an appointment in a delegate calendar in Outlook? I can detect if an appointment does not belong to a the main users folder and then, in some cases (and i cant work out exactly which) i can get the email adress of the delegate user from position 120 in the folder storeId. But in other cases this contains the email address of the main outlook user. I can see, using OutlookSpy, that IMAPISession contains a list of added calendars and, from there, PR_EMS_AB_PUBLIC_DELEGATES_BL_O contains the email address of the delegate user but I dont know if this is useful as I need to get, from an open appointment, the email address of the calendar the appointment belongs to.



Solution 1:[1]

You can try to cast RDOMail.Parent property to RDOFolder, then use RDOFolder.Store to check if it is RDOExchangeMailBoxStore. In that case, use RDOExchangeMailBoxStore.Owner.SMTPAddress.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitry Streblechenko