A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Programmatically finding calendar folders for Exchange server users



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old November 14th 06, 06:05 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Programmatically finding calendar folders for Exchange server users

See Namespace.GetSharedDefaultFolder.
Keep in mind that Outlook cannot be used from a Windows service.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Tony Gravagno" wrote in message
...
I'm writing a Windows Service that retrieves appointment data from a
separate application, and it posts this data into the calendar for
individual exchange users. I'm using PIA with C# for all work so far
and it seems OK. The problem is ensuring I'm posting new appointments
to the right folders. I can easily open the default calendar folder
in a PST, but I don't know the approach for Exchange.

One of the admin users manually opens other people's calendars in his
own client instance. I'm wondering what the best technique would be
for doing this programmatically. How do I discover what accounts are
available and then attach to their shared calendar?

Do I need to .Login to a user to post to their folder? Is the
password required? (They're using active directory.) Once I login
I'm sure I can use the user's namespace to navigate to their calendar.

We could setup Outlook on the server running this process so that it
is aware of all calendars that it needs to update, then I think
posting to a folder would be as simple as doing a lookup on the local
namespace for a folder with the user name. But there are (at least)
two issues he 1) I'd rather not have to put someone through that
manual exercise. 2) I don't know how I would translate a Windows user
ID to a name as we see when we look under "Other Calendars" when
sharing - I guess I'd have to store that name and use it as the folder
name when doing the search.

I hope that's not too confusing.
Thanks!



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Programmatically accessing Exchange shared and public folders DeborahK Outlook - Using Contacts 4 August 17th 06 12:20 AM
Finding server Bosilo Iley Outlook Express 1 April 4th 06 11:15 PM
Unable to share folders w/ Outlook and Exchange between users Nicolas Macarez Outlook - General Queries 7 March 30th 06 06:11 PM
Outlook crash for some users after move mailboxes to new server on Exchange 2003 SP2 Diamondas Outlook - General Queries 9 March 21st 06 10:59 PM
Opinion buttons for none Exchange Server account users? AndrewRossington Outlook - General Queries 3 February 28th 06 01:20 PM


All times are GMT +1. The time now is 12:58 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.