View Single Post
  #7  
Old January 16th 07, 08:30 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 7
Default Read Appointment items in a shared calendar


You can't get the shared calendars unless you know the alias names of the
available recipients. Plus you would need permissions to open their
calendars.

You can read the Global Address List, which is one of your AddressLists.
Open the AddressLists collection and get the GAL AddressList. You can then
iterate that list and get the names of everyone available. You can then try
opening each calendar using the name you just got and creating a Recipient
object for that name. That of course doesn't guarantee that you will
succeed, you need permissions, so be prepared to handle errors when you try
to open the folder using GetSharedDefaultFolder.



I already have the permission I need from those who are suppost to
share their calendar. But I looked up that GAL in outlook and there was
one address which doesent allow me to access, can I comehow use some
kind of exception when Im not allowed by the other user ? And by the
way, is it possible not to get those security messages from outlook
when I try to read the items? Because if not, I guess that there will
be A LOT of messages when Im trying to read all the appointment items
from like 10-20 addresses.

Ads