View Single Post
  #7  
Old May 2nd 06, 11:25 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Custom calendar: show data from other calendars?

1. Running on the client. Most Exchange admins don't like code running on
the server because any problem could hang or crash the Exchange server. One
Outlook client can run the code and once the public folder is updated with
the free/busy information all clients can see it, including OWA clients that
might look at that folder.

2.
Set oAL = oOL.AddressLists("Global Address List")
Set colAE = oAL.AddressEntries
For each oAE In colAE
'now you have a member of the GAL as an AddressEntry object
Next

3. No XML involved. Just get the information for each user (GAL member) and
create or update appointments for each user based on the free/busy
information. A calendar folder needs individual appointments to create it's
view, so why complicate things with XML?

The code sample link I posted should get you started.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
oups.com...
Ken,

It looks like by default, my replies should have the replied-to-post
quoted at the bottom of the message. It is now, anyway.

Anyway, back to business.

What you describe sounds pretty good. I have some follow-up questions:
- Would this run on the Exchange server? Would it be a scheduled task,
or something in the Exchange event sink, or something?
- I'm glad to hear that I can iterate over the Global Address List. I
didn't know how to do that and was despairing a little that I might not
be able to.
- Is there a way to do this via a request to the Exchange server for
XML? I have a book that has an example of how to get Free/Busy
information, but that is per user. I need calendar information, and
the ability to add calendar items.

If you could paste me a link to a tutorial on getting this type of code
up and running, please let me know.

- Sean


Ads