Questions tagged [exchangewebservices]

Exchange Web Services (EWS) is an extensibility point for clients that connect to the Exchange server and consume information about user availability, and the manipulation of items that are located in the Exchange data store.

Welcome to the EWS tag on StackOverflow!!! Use this tag to find answers, ask questions, and answer questions about the Exchange Web Services (EWS) and the Autodiscover web services provided by Exchange Server and Exchange Online. To help you create higher quality and more consistent posts, here is some guidance on how to title and flesh out the post body so that the community can more easily answer your questions:

Post Title

The post title is the first thing a reader will see. To give the reader an idea about what the post will contain, we suggest you use the following format:

Exchange Version - Programming Language - Client platform: Information you seek

Here are a couple of example titles:

  • E2013 - Java - Android KitKat: How do I upload more than one contact?
  • EXO - C# - Windows 8.1: Can I use the EWS Managed API with a Windows Store App?

Post Body

The post body should provide as much background information as possible to help the other contributors answer your questions. The following list identifies information you should consider providing when creating your post (of course, do not post sensitive information like account names, passwords, machine names, etc):

  • Exchange Version: Exchange version and service pack. Include build and version numbers if available. You can get the build and version from the XML response.
  • Client API version: Provide the client API version, if applicable.
  • IDE: The development tools you are using if they are applicable to answering your question.
  • Targeted features: Identify which features are involved in your question.
  • Code examples: Provide both the client code, and for debugging purposes, the XML request and response sent and received by the client. You can use applications like Fiddler or NetMon to capture the request/response XML. If you are using the EWS Managed API, you can provide an XML trace, here's how.
  • Scenario description: Describe the scenario that results in you posting a question to this forum. More information is better.

Here are some considerations for describing your scenario:

  • Give a thorough description of what you are trying to do and how you are attempting to do it. Provide the steps you have already attempted.
  • Identify resources you've tried to use (include links)
  • Identify the target platforms
  • Provide a code example that describes the problem (as long as it does not reveal sensitive information.)
  • Give a description of the environment for client and server hardware and software. Firewalls, proxy, trusts, security models, system architecture and other environmental factors can have programmability implications.
  • Provide error codes and exceptions; identify the specific part of the code that threw an exception. Provide stack traces if applicable.
  • Provide log entries and traces as long as they do not reveal sensitive information. Delete sensitive information.
  • Provide performance counter information from the Exchange Server.
  • List the specific questions that you want answered.
  • Don't assume that the reader knows all the background information. The more information that you provide, the better/quicker answer you will receive. It is easy to skip content that is understood; that is much better than leaving out information.

Mark answers

This forum has mechanisms for marking and qualifying answers as useful. When a question has been successfully answered, please mark the answer as useful so that readers can easily scan posts for the answer.

4045 questions
20
votes
3 answers

Dispose/Close ExchangeService in C#?

I'm using the ExchangeService WebService API (Microsoft.Exchange.WebServices.Data) but I cannot find any Close or Dispose method. Is it not neccessary to close the connection somehow? My method looks like this: public void CheckMails() { …
Simon Woker
  • 4,994
  • 1
  • 27
  • 41
19
votes
0 answers

Office js Web Addin failing to ExpandDL with soap call

I'm currently working with an Outlook Web Add-in with Office.js. In this project, we require sending mail merge emails to handle Distribution Lists and Groups. We use the ExpandDL call and our soap request looks like:
19
votes
1 answer

Mapping Office365 REST Calendar IDs to EWS CalendarItem IDs

Using Exchange push notifications I've been creating a service that syncs over calendar data from Office365 users. I've been using a combination of the Office365 Calendar REST API (to get and manage calendars) and the EWS API (to subscribe to…
jstruzik
  • 1,440
  • 10
  • 19
18
votes
3 answers

Exchange Web Services (EWS) FindItems within All Folders

I am using the following code to find all the emails sent from a user, however this only searches the main Inbox folder and doesn't check any sub-folders. I would like to search all the mail items including any sub-folders. I have tried the…
Luke
  • 6,195
  • 11
  • 57
  • 85
18
votes
1 answer

getting autodiscover URL from Exchange email address

I'm starting with an address for an Exchange 2007 server: user@domain.exchangeserver.org And I attempted to send an autodiscover request, as documented at MSDN. I attempted to use the generic autodiscover address documented at the TechNet White…
Anthony
  • 36,459
  • 25
  • 97
  • 163
18
votes
1 answer

Fetching all mails in Inbox from Exchange Web Services Managed API and storing them as a .eml files

I want to fetch all mails in the Inbox folder using EWS Managed API and store them as .eml. The problem is in fetching (1) all mails with (2) all headers (like from, to, subject) (I am keeping information of those values of from, to and other…
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
18
votes
2 answers

Using EWS API to search through different users mailboxes

We are developing a module with the main goal being to track and collect information about damage inspections (insurance market). Each case has a code (e.g. L000525). Each case could be managed by several people. All the emails related to a…
user195462
17
votes
2 answers

How do i find out if an appointment is private

I use Exchange Server Managed API. How do I find out if an appointment is private? There doesn't seem to be a method or property in the "Appointment" class.
Luke
  • 5,771
  • 12
  • 55
  • 77
17
votes
1 answer

EWS Java API: The meeting request is out of date. The calendar couldn't be updated

I am using the Microsoft EWS Java API to create and accept appointments on behalf of some users. The way I am doing this is by sending the meeting request and then setting up inbox watchers on the recipient's inbox and accepting the incoming…
pathikrit
  • 32,469
  • 37
  • 142
  • 221
17
votes
3 answers

Where can I get the latest Microsoft.Exchange.WebServices.DLL?

I'm trying to use the latest Exchange Web Services DLL, however when I search my hard drive I see many versions of Microsoft.Exchange.WebServices.DLL, the most recent being version 14.0.650.7 with a date of 1/24/12. I want to rebuild my machine but…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
16
votes
2 answers

Wrong mailbox items being retrieved using Exchange Web Services managed API in C#

I'm trying to retrieve Inbox items from a specific mailbox (in which i have permissions), using Exchange Web Services managed API. I've tested the code first using my own email address via AutodiscoverUrl, and it works fine. However when i tried…
communista
  • 185
  • 1
  • 1
  • 9
16
votes
1 answer

C# EWS Managed API: How to access shared mailboxes but not my own inbox

How can I connect to an exchange server and read mail from a shared mailbox (one that is not my own "myname@mycompany.com"). Here is my code thus far: //Create a service ExchangeService service = new…
Dillon Willis
  • 169
  • 2
  • 3
  • 6
16
votes
4 answers

How do I retrieve just recurring event masters using Exchange Web services?

I'm using a CalendarItemType view to retrieve calendar items. The only items I care about are those that I've created and I know that they are all weekly recurring items. I'm able to get each individual occurrence and, from any one of them the…
tvanfosson
  • 524,688
  • 99
  • 697
  • 795
16
votes
4 answers

When searching Global Address List, is there a way to do a partial search and not just a "startsWith"

I have the following code to search the global address book by a certain string: "CONF" var esb = new ExchangeServiceBinding(); esb.Url = @"https://myurl.com/EWS/Exchange.asmx"; esb.Credentials = new NetworkCredential(_user,_pwd, _domain); var…
leora
  • 188,729
  • 360
  • 878
  • 1,366
16
votes
2 answers

Office365 API - Accessing another users/room's calendars

I'm attempting to build an application that will have access to all of an organization's calendars (users, rooms, etc). Currently my auth flow will sign in on behalf of a tenant user and make use of refresh tokens to access needed resources. As soon…
jstruzik
  • 1,440
  • 10
  • 19