exchangewebservices

How To Get all ITEMS from Folders and Sub-folders of PublicFolders Using EWS Managed API

孤街醉人 提交于 2019-12-17 12:46:18
问题 How to retrieve all items from "public folders" and its "sub-folders" in exchange server2010 uisng managed API??? rootfolder = Folder.Bind(service,WellKnownFolderName.PublicFoldersRoot); rootfolder.Load(); foreach (Folder folder in rootfolder.FindFolders(new FolderView(int.MaxValue))) { FindItemsResults<Item> findResults = folder.FindItems(iv); foreach (Item item in findResults) { //get item info; } } "If i do like this i am not getting items present in sub-folders of it..public folders does

EWS - Access All Shared Calendars

不想你离开。 提交于 2019-12-17 04:34:20
问题 I've got the following code: private void ListCalendarFolders(ref List<EBCalendar> items, int offset) { var pageSize = 100; var view = new FolderView(pageSize, offset, OffsetBasePoint.Beginning); view.PropertySet = new PropertySet(BasePropertySet.FirstClassProperties); view.PropertySet.Add(FolderSchema.DisplayName); view.PropertySet.Add(FolderSchema.EffectiveRights); view.Traversal = FolderTraversal.Deep; FindFoldersResults findFolderResults = service.FindFolders(WellKnownFolderName

How do I get address lists (NOT global) using Exchange WebServices in C#

怎甘沉沦 提交于 2019-12-14 03:19:23
问题 the web shows dozens of examples to query the exchange's global address list but i want to query the specific address lists! So every user in our Enterprise is ofcourse listed in our global address list but i want to query the address list of a specific company within our Enterprise. In the example below, Aswebo, Cosimco, etc.. are address lists. How do I list these address lists? How do I list the people within these address lists? 回答1: I don't have exchange setup to test this code, so it

PowerShell EWS SendAndSaveCopy() in specific folder

旧街凉风 提交于 2019-12-13 21:57:07
问题 I'm trying to figure out the correct syntax for EWS to be able to store a mail that is sent in a specific folder, not just in the 'Sent Items' folder. Mailbox structure: Mailbox@mail.com - Inbox - ----- PowerShell - ----- ---------- Mail OUT How can I have EWS save the sent mail in Inbox\PowerShell\Mail OUT ? I've tried the following without success: $Message.SendAndSaveCopy('WellKnownFolderName.Inbox.PowerShell.Mail OUT') $Message.SendAndSaveCopy('WellKnownFolderName.Inbox\PowerShell\Mail

PHP Exchange Web Services - get message body

人走茶凉 提交于 2019-12-13 19:40:46
问题 I'm using a PHP EWS library, and took this example to get a list of messages, which works perfectly. It pulls through details such as the sender, receiver, subject, time etc. I tried looking through all the library, but I can't workout how to pull through the message body and attachments. Any ideas? 回答1: It is well described in PHP EWS wiki, right here: https://github.com/jamesiarmes/php-ews/wiki/Email-:-Retrieve-All-Email-Attachments Edit: use whole example linked above to fetch email

Using Delegates with Exchange Web Services

旧巷老猫 提交于 2019-12-13 17:25:31
问题 Has anyone used delegates with exchnage web services? I would like one user to be able to control other users' calendars in Exchange. I'm finding this problem to be a little tricky, and I'd like to see how others have been able to get it to work properly. 回答1: I'm just getting started here, but i managed to get access to Resource calendars via a delegate account. I used the recommendations from this article about delegate account and resource accounts. (Resource accounts are tricky because

How to have two separated contacts with same email address?

拈花ヽ惹草 提交于 2019-12-13 07:09:21
问题 Using Exchange 2013 and Outlook 2013, I need to have two separated contacts with same email address. What I've seen is once I create a contact with an email address, for the second contact (even though I choose to create a new contact instead of update the existing one) Outlook merges two contacts details. Now the question is, is this doable at all? Can I have two or more contacts sharing same email address but having isolated details? In fact, I'm using ews managed API to do this

ews-java-api java.net.ConnectException: Connection timed out for https

被刻印的时光 ゝ 提交于 2019-12-13 06:08:07
问题 I am using the ews-java-api provided by https://github.com/OfficeDev/ews-java-api/. While the code works perfectly from my local, when running on our server I get the below exception. Curl command for the URL from server works perfectly. So network teams rule out firewall issues. Below is the full stack trace microsoft.exchange.webservices.data.ServiceRequestException: The request failed. The request failed. Connect to mail.microsoft.com:443 [mail.microsoft.com/131.107.125.5] failed:

Count unread emails from multiple outlook mailboxes using EWS c#

浪子不回头ぞ 提交于 2019-12-13 05:59:38
问题 I want to count unread inbox counts from multiple outlook mailboxes (distribution lists) using exchange web services with C#. But the code keeps counting my inbox unread emails and not from the mailboxes I have provided in the code. Below is my code, protected void Page_Load(object sender, EventArgs e) { getunreademailcount_valid(); getunreademailcount_invalid(); } public void getunreademailcount_valid() { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010); service

Get all calendar events for a specific user

被刻印的时光 ゝ 提交于 2019-12-13 05:06:17
问题 As part of creating a service for syncing an internal application's calendar with Outlook Calendar (Exchange) I need a way to get all of the events from the calendars of a list of users. Through EWS I can get access to a user's calendar with their credentials but I won't have access to the password of the users I need to get the calendar's for. Is there any way to get at any user's data using admin credentials and that user's mail address? 回答1: Answering my own questions here but the answer