![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#2
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |