Get calender owner from appointment item

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.
 
K

Ken Slovak - [MVP - Outlook]

If I understand what you are asking, use AppointmentItem.Organizer.
 
C

Chet

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
 
S

Sue Mosher [MVP-Outlook]

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
 
C

Chet

Hi Sue,

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

Thanks
 
S

Sue Mosher [MVP-Outlook]

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
 

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