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
2 answers

Read MSExchange emails from a custom folder

Is there a way to read emails from a custom folder in MS-Exchange using Java? I'm able to read from the Inbox, but I have custom folder names where the emails are moved to that I'd like to have the code read in those folders. Below is my current…
user1775967
  • 631
  • 2
  • 6
  • 14
1
vote
1 answer

How to check whether I have subscribed successfully to EWS push notification?

Now I have subscribed a push notification to EWS to receive Create or New mail events, but sometime I can’t get heartbeat event from EWS more than one hour. So, if I want to check whether these push notification subscriptions succeed, is there any…
Vincent
  • 11
  • 1
  • 2
1
vote
2 answers

Create an email using EWS Exchange and attach another email

I'm having trouble attaching an email to a new email using EWS. So i have the Microsoft.Exchnage.Webservice.Data.Item in my findResults. If I find an issue in the form data of the email then I want to attach that item to a new email and send it to a…
griegs
  • 22,624
  • 33
  • 128
  • 205
1
vote
1 answer

EWS Read Mail Plain Text Body Getting ServiceObjectPropertyException

I have done the following in the code below but still getting a ServiceObjectPropertyException. I am obviously loading the property as advised here too . Please can anyone help point out what I am doing wrongly this.ExchangeService = new…
kolexinfos
  • 1,030
  • 1
  • 21
  • 42
1
vote
1 answer

How to set/access outlook DoNotForward property in Microsoft exchange service

Option I want to use when sending the email is accessed in outlook. Permission option I need to set Do not forward permission of EmailMessage object in Microsoft exchange service code but I am not able to set it to true. …
1
vote
0 answers

How do I share sign-in information between Outlook Web Anywhere and Exchange Web Services?

I'm attempting to develop a chrome extension which will allow a user to use Outlook Web Anywhere more effectively. During development, I noticed that there doesn't appear to be any way to share login information between OWA (which uses form based…
1
vote
2 answers

How to get all users from Exchange with EWS

I would like to get all users from xchange server with EWS. I have figured out how to get all rooms and all appointments. But I specifically need all users thus I can CRUD users from my application. Is this even possible? I did not find any example…
eomeroff
  • 9,599
  • 30
  • 97
  • 138
1
vote
1 answer

Allow impersonation using ews

I'm trying to create a program in C# which should make it able to create appointments in someone else's Outlook calendar. I have code which makes it able to create appointments in my own calendar. I searched on Google and I found I should use…
Quinten Henry
  • 125
  • 1
  • 2
  • 10
1
vote
1 answer

What should be in the "encryptedSecretValue" Parameter in an Azure app manifest?

I'm trying to use OAuth authentication with Exchange Web Services (EWS) against Office365. This is after having successfully used OAuth2 with the new RESTful Graph API, but finding that Graph API doesn't do what I need to do with a confidential…
1
vote
0 answers

EWS autodiscoverUrl failing for on premise exchange server 2007 SP1

I am trying to connect to the on-premise exchange server (2007 SP1) using EWS 2.0 Java api ([ews-java-api][1]). ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); …
resp78
  • 1,414
  • 16
  • 37
1
vote
1 answer

How to to print mail body and subject from unread answer?

I want to get the mail subject and body of only unread mails of my inbox. I want to read one unread mail at a time and mark it as read afterwards. I need the subject, from address and mail body. The below code shows gives me the mail IDs of all…
bKashOST
  • 149
  • 4
  • 11
1
vote
0 answers

Error sending email via microsoft exchange for Android : java.lang.NullPointerException: format == null

Below is my code I am using to send mail using EWS for Android. ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); ExchangeCredentials credentials = new WebCredentials("user","pass"); …
tejas
  • 2,435
  • 10
  • 37
  • 54
1
vote
0 answers

Get attachment files from exchange emails in SSIS

I have a client that will send us everyday by email attachment files to process it. I have script task but it doesn't work, the script connect to my account through webmail but when the script try to read the Inbox folder I get an error. In this…
1
vote
2 answers

How can I know that two emails are the same from two different mailboxes?

If I send the same email to two different mailboxes, I'd like to be able to tell if these are the same email. The problem is that the itemId is different for the two emails. And I can't figure a way to have a unique identifier from two identical…
1
vote
2 answers

EWS - This operation can't be performed because one or more items are new or unmodified

Relating to a batch update question I asked previously about using a single update to mark as read all the unread emails, I could use ExchangeService.UpdateItems according to Jason's answer. So I modified accordingly: Folder.Bind(Service,…
Armfoot
  • 4,663
  • 5
  • 45
  • 60
1 2 3
99
100