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
14
votes
1 answer

Microsoft.Exchange.WebServices is not working in VS2010

I'n using EWS ExchangeService to read emails from outlook... I've coded the in Console project and in VS2008... Everything works fine as it is.. I can read the emails. To become more familair with VS2010 I created a console project and copied the…
ethem
  • 2,888
  • 9
  • 42
  • 57
14
votes
2 answers

How to get contact list from Exchange Server?

Can anyone tell me the simplest way to get a contact list from Exchange Server? I'm using C# From what I found out, Exchange Web Services only exists for Exchange Server 2007 and beyond. That would be my first option, but I'd also like an…
Johnny
  • 169
  • 1
  • 2
  • 8
14
votes
4 answers

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

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(); …
user1891567
  • 681
  • 2
  • 10
  • 15
14
votes
3 answers

How to do paging with Exchange Web Services CalendarView

If I do this: _calendar = (CalendarFolder)Folder.Bind(_service, WellKnownFolderName.Calendar); var findResults = _calendar.FindAppointments( new CalendarView(startDate.Date, endDate.Date) ); I sometimes get an exception that too many items…
tig
  • 3,424
  • 3
  • 32
  • 65
13
votes
7 answers

How to get OAuth2 access token for EWS managed API in service/daemon application

Scenario I have an Exchange Online environment and service/daemin (no interactive user) application on the Azure VM. Service uses EWS managed API to work with emails in the mailbox of any tenant user. Now EWS client uses Basic authentication that,…
Oleksii
  • 311
  • 1
  • 3
  • 10
13
votes
1 answer

Sending email using EWS in c# from shared mailbox

The IT department is moving away from creating a service account to shared mailbox. All of our department email accounts are being converted to shared mailbox. Until now, I had been using EWS to send email from our web app to recipients using the…
Kuni
  • 817
  • 1
  • 9
  • 24
13
votes
3 answers

Exchange web services: why is ItemId not constant?

I write a small application, which should automatically process the emails from a public folder. For each email, we want to save some metadata, in a database. I wanted to use the ItemID to make the link between this metadata and a specific email,…
dann
  • 298
  • 1
  • 3
  • 7
13
votes
3 answers

Using EWS Managed API to create appointments for other users?

In EWS Managed API is it easy to create an appointment for a specific user: ExchangeService service = new ExchangeService(); service.Credentials = new NetworkCredentials ( "administrator", "password", "domain"…
Kyle
  • 17,317
  • 32
  • 140
  • 246
12
votes
3 answers

Access Exchange Web Services with PHP and cURL

Hello, I am currently writing a client to access a Microsoft Exchange server and read contacts, appointments etc. from it. Through days of searching I've been able to connect to the EWS via PHP's Soap client and a custom HTTPS Stream wrapper. This…
DarkDevine
  • 1,047
  • 1
  • 9
  • 12
12
votes
2 answers

Find all subfolders of the Inbox folder using EWS

I have the following Inbox folder structure: Inbox --ABC ----ABC 2 ----ABC 3 --XYZ ----XYZ 2 --123 ----123 A ----123 B ----123 C I am using Exchange Web Services and the following code to find the child folders of the Inbox folder: ExchangeService…
Sesame
  • 3,370
  • 18
  • 50
  • 75
12
votes
2 answers

Send mails using EXCHANGE SERVER (Microsoft Outlook web access)in asp.net

I know how to send mails using outlook installed in same machine, where I'm running my code. Now, the requirement here is to access exchange server (Microsoft OWA) of my organization for sending mails in asp.net code. Is it possible? If yes, then…
Kings
  • 1,551
  • 12
  • 32
  • 52
12
votes
1 answer

exchangelib - All steps in the autodiscover protocol failed

I have a problem with using exchangelib in python. I try this example code: from exchangelib import DELEGATE, Account, Credentials creds = Credentials( username='xxxx\\username', password="mypassword" ) account = Account( …
12
votes
1 answer

Exchange FindItem responding with different set of properties for one item id and for multiple item ids

When I loading properties of multiple exchange items by ExchangeService.LoadPropertiesForItems method, Exchange skip some properties of items attachments in response:
Yuriy Rozhovetskiy
  • 22,270
  • 4
  • 37
  • 68
12
votes
5 answers

Can I avoid storing MS Exchange credentials while still being able to authenticate (against EWS)?

I'm building an application that syncs data between users' Exchange Server accounts (version 2007-2013 supported) and the application. The application can't use impersonation (at least not in the typical case) as users could be on any number of…
David Murdoch
  • 87,823
  • 39
  • 148
  • 191
11
votes
4 answers

Updating an Appointment causes it to change to a Meeting in EWS 1.1

Here's what I'm trying to do: get all items on a user's calendar between two dates update the Location or Subject for some items I get the items with: FindItemsResults findResults = calendar.FindAppointments(new…
tig
  • 3,424
  • 3
  • 32
  • 65