Feasibility Question: Possible to pull Calendar Items from shared calendar?

  • Thread starter Thread starter Paul Thompson
  • Start date Start date
P

Paul Thompson

I want to develop an automated system whereby an individual's outlook
session automatically polls a shared calendar for events happening
that day. If there is an event, it is duplicated in the individual's
calendar. However, there is a caveat: the owner of the shared
calendar doesn't want to clutter his primary calendar, so we would
have to create a new calendar...call it CHANGE_CALENDAR.

Has anyone ever done this kind of thing before? I'd appreciate any
guidance I can get as I'm fairly new at Outlook programming.

Many thanks!
 
It's possible to access any calendar, given the property permissions. In the
case of a subfolder in a shared mailbox, there are two approaches you can
use. One is to walk the folder hierarchy using the Folders collections or
use a function that does that for you. See
http://www.outlookcode.com/d/code/getfolder.htm. This approach requires that
the shared mailbox be set up in the individual's profile as a secondary
mailbox so that it is visible in the folder list. The other is to use CDO
and a dynamic profile to logon to the mailbox. The disadvantages of the CDO
method are that you have to make sure the CDO component of OUtlook has been
installeds and appointments in a calendar subfolder are accessed as CDO
Message objects, not as appointments, so you have to use MAPI property tags
to get the data (see http://www.cdolive.com/cdo10.htm).
 
Back
Top