CDO 1.2, Outlook 2000 and Appointments
Outlook has a NameSpace.GetItemFromID method that you can use with
EntryID to locate an item. For other people's folders you can use
NameSpace.GetSharedDefaultFolder to get at their calendars if you have
permissions.
With CDO you also can use EntryID and you also can use other people's
folders if you have permissions and can use their logins. See
www.cdolive.com for examples of this.
I use both object models all the time, the choice depends on ease of
use (Outlook), speed (CDO), size of data set (CDO for large sets of
data) and ease of working with the item type. A lot will also depend
on CDO being installed, it's an optional install for Outlook 2000.
--
Ken Slovak
[MVP - Outlook]
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
Appendices, Sams
Quote:
> I have been trying to decide whether to use CDO 1.2 or Outlook 2000
to do a
> project. My project is to write a wrapper that will be able to add
> appointments, update appointments e.g. change the time and day, and
remove
> appointments. The wrapper needs to be able to do this in any
Exchange 5.5
> user's calendar. I have seen some discussion that leads me to
believe that
> CDO only likes to work for the user logged in to a session. I have
seen
> examples that use Outlook Namespaces and recipients to get to any
user's
> calendar. I need to be able to retrieve the appointment I have
added to
> John Doe's calendar and update or remove it. The EntryID property
in
> Outlook looks like the unique identifier. I see that it changes
when moved
> to a new folder, but it looks like I could use this as long as the
> appointment stays in the user's Calendar folder. I thought I might
use the
> EntryID to retrieve the appointment to update or remove. Is this a
good
> idea? CDO has a GetMessage call that takes a EntryID and a StoreID,
but I
> didn't see one in Outlook. What I want to do seems like a pretty
common
> task. Are there recommendations for me from you folks that have
some
> experience. Thanks much, Markp