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 ?
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
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.