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

How get the current user's own email address or check entered, using Exchange Web Services (EWS)?

I have to work with external Exchange server. How can I get the own email address or check address entered by the user (that he introduced exactly own address), using EWS? Email address is not the same as username.
vangog
  • 61
  • 1
  • 8
1
vote
2 answers

listen for new email on exchange

I am trying to use the ews-java API to connect to my inbox and listen for new emails. I seem to be able to connect just fine, and I am copying code from the examples on github…
Doug Greaney
  • 181
  • 3
  • 17
1
vote
1 answer

Is it possible to be a delegate with create, update and delete own permissions but not read in exchange 2010

I have a service account that I want to be able to access another users calendar through the ews api in such a way that it can create appointments, update appointments they have created and delete appointments they have created but NOT be able to…
1
vote
1 answer

EWS managed api - Marking an email as processed in some way for user

Im writing a tool that goes through users emails and processes them in some way. Once processed, I would like to modify the email in some way to display the user viewing it in outlook that it was processed, so that it's easy for them to see which…
makeyoupizza
  • 195
  • 1
  • 1
  • 9
1
vote
1 answer

Create Microsoft Outlook calendar entries from another system (oracle db)

I was wondering if someone knows a solution to create a calendar entry from another system into someone his outlook calender. The requirments are that the calendar entry is created automatically, and that's it's accepted. (no interaction from the…
leke
  • 155
  • 3
  • 13
1
vote
2 answers

Read ExtendedProperties from Outlook Add-In

I am currently setting custom ExtendedProperties on a CalendarFolder using EWS Managed API (C#): myCalendar.SetExtendedProperty(customExtendedProperty, true); I can also use the Managed API to load those settings when I bind the CalendarFolder: var…
Andy T
  • 10,223
  • 5
  • 53
  • 95
1
vote
1 answer

EWS ItemId after migration from in premises Exchange 2013 to Office365

We have an application that connects to Exchange and is able to read, create, reschedule and cancel calendar entries for a bunch of users. All this is done via EWS. To track the events that are created in Exchange for later updates, the app stores…
1
vote
1 answer

Access other user's mailbox to get his folder structure

How is it possible to get a specific user's folder structure without using the ExchangeService with it password? I surely have the rights to read the information but can't find a way to do that. I'm searching for something like that: Mailbox…
Zumarta
  • 145
  • 3
  • 18
1
vote
1 answer

Why is EWS search filter returning fewer emails than I see from outlook?

I am using the following code to retrieve emails whose subject contains "MS" and "QW". I see more than 8 emails satisfying the search criteria, but the code returns only two emails. Can anyone help me take a look at what the problem is in here? …
user1559897
  • 1,454
  • 2
  • 14
  • 27
1
vote
0 answers

EWS: Get attendants' response for calendar events - "unknown", workarounds?

I have a Java application which tries pulling down calendar events from the Exchange Web Services. Everything is working pretty fine, but Attendee.getResponseType() always returns "unknown". In other threads, I've seen that this occurs because I'm…
Scorchio
  • 2,763
  • 2
  • 20
  • 28
1
vote
1 answer

How to add a Contact to an E-mail Message using EWS Managed API 2.2

I searched for a documentation how to add a contact as an attachment to an e-mail generated with the EWS Managed Api 2.2 and because I didn't find a solution online I'd like to share my solution here, because it is quite easy when you found it out.
Zumarta
  • 145
  • 3
  • 18
1
vote
1 answer

Send email without leaving a copy in the Sent folder outlook c#

When i am sending mail through outlook in c# ,all the mails are saved in sent box. Is there any way which does not leave the copy of mail in sent folder programatically.
1
vote
2 answers

Is there a way to connect with EWS without user credentials if I'm not using Office 365?

Original jamesiarmes/php-ews offers authentication only by username / password. Fork by Garethp has some OAuth function but it requires Office365 and registering application in Azure. Is there any possibility to connect to Outlook by web browser…
piotrevic
  • 31
  • 3
1
vote
0 answers

Downloading email attachment using Java EWS API running from Weblogic Server (Java Embedding - Oracle 11g)

I am trying to use the Java EWS API to download email attachment from Outlook. My requirement is as follows To connect to the mailbox Search for a folder named "Test" Inside the test folder search for a Mail with a pattern matching subject and…
Dineshvs
  • 11
  • 4
1
vote
0 answers

What's the best way to update a folder using EWS?

I've been working on syncing folders with the EWS API, and it's super useful that it returns ChangeType for creations/updates/deletions in SyncFolderHierarchy. However, in the serviceObject, all I get is the folder object that's been updated. Is…
jackiehluo
  • 11
  • 2