user1206630
user1206630

Reputation: 61

How to access group folders / shared folders from EWS (ExchangeService) in C#

How do I access group folders / shared folders from EWS (ExchangeService) - I can access my own folders - no problem - but I cannot see Mailboxes I have access to such as Team Mailboxes or group mailboxes.

I Can get my own folders this way:

ExchangeService _service = new ExchangeService();
_service.Credentials = new NetworkCredential("MY Username", "My Password");
_service.AutodiscoverUrl("My Email Address",delegate(string x) { return true; });

FolderView view = new FolderView(int.MaxValue);  
view.Traversal = FolderTraversal.Shallow;
FindFoldersResults findFolderResults = service.FindFolders(id, view);

The above will only give my OWN stuff. Question is how do I get the rest of the Mailboxes that I have access to, and can see from within Outlook ?

Upvotes: 3

Views: 5044

Answers (1)

SliverNinja - MSFT
SliverNinja - MSFT

Reputation: 31651

If you know the mailbox name then DistinguishedFolderIdType.Mailbox may be what you're looking for. See this SO post regarding using delegates in EWS.

Here is an example of accessing a shared Exchange Mailbox via FolderId and Mailbox.

Upvotes: 1

Related Questions