Get calender owner from appointment item

  • Thread starter Thread starter Chet
  • Start date Start date
C

Chet

I am trying to find out the owner of the calander from an
appointment item eg.

oAppointment := myNameSpace.GetItemFromID(EntryID);

How would I be able to know whos calendar this
appointment is in?

Thanks.
 
If I understand what you are asking, use AppointmentItem.Organizer.
 
Its not quite what I'm after

AppointmentItem.Organizer is the person who created the
appointment item. I need the person of the calendar whos
the appointment item is in.


Thanks
 
FWIW, we had a very long discussion on this topic a few months ago at
http://www.outlookcode.com/threads.aspx?forumid=4&messageid=3903. One
conclusion was that the MAPI property PR_CREATOR_NAME may be what you're
looking for, even though that doesn't sound logical.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Hi Sue,

Could you give me an example code of how to retrieve this
property(PR_CREATOR_NAME) from the appointment.

Thanks
 
There's a good primer on using MAPI property tags at
http://www.cdolive.com/cdo10.htm . If you want to use Redemption instead of
CDO to avoid security prompts, the technique is essentially the same -- you
use the Fields collection.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top