Get SharedCalendar Owner

  • Thread starter Thomas Frederiksen
  • Start date
T

Thomas Frederiksen

Hello Everybody

Is there any way, once I have an AppointmentItem object referenced, to
get the owner of the calendar in which the appointment resides.

I have looked at various solutions, and I can tell you that they are
not:

1: Using the AppointmentItem.Organizer
---------------------------------------
This will give me the person that created the appointment. I want thew
person that owns the calendar where the AppointmentItem is.


2: AppointmentItem.Parent.Parent.Name
---------------------------------------
This only works if I am in my own calendar. If I use this in a
SharedCalendar it returns something that looks like a EntryID.

Another problem with this solution is that if two people in your
addressbook share the same name, this will return empty string "".

Furthermore its a horrible hack.

3: Attendees.
--------------------------------------
If the appointment has no attendees this wont work.


I really hope someone here have the solution for this problem.




Kind Regards

Thomas Frederiksen
 
K

Ken Slovak - [MVP - Outlook]

The only way I know to do that is to get the StoreID of that mailbox and
hack the primary recipient name from the StoreID.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top