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
1
vote
0 answers

c# - EWS - accessing shared calendars using exchange web services

I am trying to access the shared calendar of a exchange server user and i have found a code that was shared in the stackoverflow. This code works as follows. It first browses through user folders and gets the shared calendars of the logged in user.…
1
vote
0 answers

Accessing Outlook REST API from C# Console App on Windows XP

I'm updating a very old VB.NET console application to C#. The old application used the Domino libraries to send and search through received email through a Lotus Notes client. My organization has since migrated all email to Office 365 and the Lotus…
Mark Petereit
  • 341
  • 2
  • 15
1
vote
1 answer

Search the body field when using a search folder

The query below searches inside a search folder. The query is supposed to match the subject or the body. It works for the subject field (and other fields that I tested with) but it does not work with the body field. There are no error messages.…
Rayhan Muktader
  • 2,038
  • 2
  • 15
  • 32
1
vote
0 answers

Android and Exchange WS SOAP API

I need to call EWS sending SOAP messages over HTTPS. 1) Nowadays what fits better? HTTPSUrlConnection Ksoap2 2) How do I get started to login into EWS, use SOAP Autodiscovery to discover the url endpoint and finally send the SOAP XML requests (EWS…
Gabe
  • 5,997
  • 5
  • 46
  • 92
1
vote
1 answer

php ews Copy Message from inbox to other user's inbox

With php-ews is there a possibility to copy a message from an inbox to other user's inbox? The goal is that a message is created by php-ews in a web interface, saved to a shared inbox and after this save a copy of the message to user's inbox. My…
S. Klicek
  • 55
  • 9
1
vote
0 answers

Corporate email integration, exchange server ews

I need to integrate outlook corporate emails in CRM. For this is use java EWS API. I read microsoft documentation of EWS but I still have some questions, maybe someone can help. First I need to connect with ExchangeService: ExchangeService service =…
aelve
  • 119
  • 1
  • 10
1
vote
1 answer

Is it possible to get EWS streaming notifications from multiple servers continually?

I'm just starting out in the Office365, Exchange Online, EWS field, and I've been tasked with building a rather complex project. I would like to know if it is possible to make an application that awaits a notification about an event on an Exchange…
1
vote
1 answer

How to get MimeContent while fetching an email from EWS?

I am using EWS service in my Application. At point I want fetch an existing email and then convert it to a file. i am using following code for this. private ExchangeService _service = null; internal EWSClient() { _service = new…
1
vote
1 answer

Windows Service to synchronise with Exchange Server Contacts

I want to write a windows service that periodically synchronises a database with the contacts in an exchange 2007 server instance. Is this possible with Exchange Web Services or can I do this with powershell? If I go the EWB route, does this means…
dagda1
  • 26,856
  • 59
  • 237
  • 450
1
vote
1 answer

500 Error: Failed to establish a backside connection, on bluemix when connecting to Exchange web services

I have a Liberty Websphere application hosted on Bluemix that connects to Exchange Web Services. When I run this api on localhost it works fine and returns the desired results. But when I host it on bluemix, it returns the error "500 Error: Failed…
Ishmeet
  • 707
  • 6
  • 18
1
vote
2 answers

Retrieving email attachments from server

We have an email coming at regular intervals (the request will be user driven), containing an Excel attachment. The goal is to extract the attachment from the email automatically, and pass it on to the method that will deal with the data in the…
1
vote
1 answer

Exchange 365 wipe mailbox (wipe purges)

After an initial failed migration from Google Apps to Office 365, I used Powershell to delete all items in the mailbox and start another sync. Search-Mailbox -Identity "identity" -DeleteContent -force Search-mailbox -identity "identity"…
TJF
  • 2,248
  • 4
  • 28
  • 43
1
vote
1 answer

How to get all information from Global Address List (GAL) from Microsoft Exchange, using EWS Managed API?

I need to get all contacts from Microsoft Exchange.. Those contacts are also saved in Office365 -> People -> Directory. Many thx for help!
Mato Skok
  • 29
  • 1
  • 8
1
vote
1 answer

Get folder by FolderId to find parent folder

Is there an easy way to get a folder by its folder id? I have an item which has the property item.ParentFolderId but I can't find any method like GetFolderById(id) or something like that. I actually searched a lot in the MSDN library but I wasn't…
Zumarta
  • 145
  • 3
  • 18
1
vote
1 answer

How to impersonate O365 room account

I searched and couldn't find any way to impersonate an Exchange Online room account to get its calendar and events using EWS. Some results said that this account has been disabled for impersonation by default. So how to turn it on? UPDATE: My…
Brian Pham
  • 551
  • 9
  • 23