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

Java EWS API Search mail by date

I'm building a web client mail which works with the EWS Java API 2.0. I would like to get mail from inbox according to a specific date. This is what i have already: public void foo(String dateToCompare){ try { DateTime…
1
vote
1 answer

Missing attachments when parse .p7m file

I have a p7m file in my disk which contains 1 jpg picture, 1 txt file and a email body context. Fortunately, I can get the email body text and the p7s file. I can verify the p7s file(certificate), but I can not find the two attachments. It looks…
Cain
  • 585
  • 1
  • 9
  • 25
1
vote
1 answer

Delete emails from EWS ExchangeVersion.Exchange2013 vs 2010

My test code works with deleting emails using the ExchangeVersion.Exchange2010 as shown below. var finalsearchFilter = new SearchFilter.SearchFilterCollection(LogicalOperator.And) { new…
1
vote
1 answer

Internet Message ID FROM EWS Managed API Send Email c#

I am trying to discover if there is a way to determine the internet message ID after sending an email using the EWS Managed API. I understand you can go in there and get the results from the sent box, but the server that is sending these emails is…
MysterJon
  • 11
  • 2
1
vote
0 answers

How to get Appointment recurrence in XML format using EWS?

I am working on Mail Application. I want to get Appointment details from Exchange Server Account using EWS. I use Scheduler control which get details of recurrence in XML format. I want to get details of Appointment in either XML or in String…
1
vote
1 answer

Exchange Web Services - how it recognize "global events"? There is no global ID

I'm using php ews to obtain events from Exchange, but it seems like there is no global id of event for all users. Microsoft write about it in docs - https://msdn.microsoft.com/en-us/library/office/dn605828%28v=exchg.150%29.aspx User A is organizer…
piotrevic
  • 31
  • 3
1
vote
1 answer

How can I create an Extended (custom) Property with EWS?

I have created a little demo application which is able to create a meeting request by using the Exchange WebService (EWS). I would also like to add some custom properties to this item but up to now I have only found examples which use the Exchange…
Marcus
  • 1,105
  • 2
  • 21
  • 35
1
vote
0 answers

How to abort HttpRequest?

I'm using ThreadSafeClientConnManager to manage a pool of client connections on HttpClient 4.0.1 environment. Usually my system works fine when authenticating with NTLM, but sometimes it doesn't work properly. When authenticating with NTLM, we…
1
vote
2 answers

EWS : Convert email adress from X500 to smtp address

I'm extracting emails using the EWS API, sometimes, Sender.Address property returns somthing like this : /O=FIRST ORGANIZATION/OU=EXCHANGE ADMINISTRATIVE GROUP (XXXXXXXXXXXXXXX)/CN=RECIPIENTS/CN=USERXXXXXXX I think it's X500 email format, I tried…
Hamza_L
  • 644
  • 4
  • 18
1
vote
1 answer

Exchange Service FindItems API does not always find all matching messages

I have a program that once every few hours synchronizes an Office 365 Online mailbox to a database collection. In order to pull down the latest messages, I'm using ExchangeService C# API However, every once in a while, newest messages for certain…
Igorek
  • 15,716
  • 3
  • 54
  • 92
1
vote
1 answer

ErrorSchemaValidation errors setting flag on email with EWS SOAP

I keep getting ErrorSchemaValidation errors attempting to set a variety of flag types on an email using Exchange Web Services with SOAP (the UpdateItem operation). Here's an example of such an error:
Eric Legault
  • 5,706
  • 2
  • 22
  • 38
1
vote
1 answer

Deleting an Email using the Office 365 Mail REST service from a background Daemon service

I am building a background service which accesses Office 365 mailboxes in order to retrieve emails and process them in our application. Once processing is complete it should delete the emails. I have successfully set up authentication of the web…
1
vote
1 answer

lync meeting url to be created using ucma and send via EWS

I am using EWS to create and send outlook meetings. But now i need to create a lync meeting and simply send the url to participants using EWS, so they can join in the same lync audio call. Sending mails via EWS part is done, but I am unable to…
Chandikumar
  • 139
  • 11
1
vote
1 answer

Update cURL without update Xampp

I am working with Exchange Web Service (2007) using php-ews. Its dependencies say "cURL with NTLM support (7.23.0+ recommended)" but in the server we have an old Xampp with cURL 7.21 and my code doesn't work. In local I have cURL 7.42 and my code…
andandara
  • 13
  • 8
1
vote
1 answer

How to get "Web page" contact field through Exchange EWS/EWS managed api?

I'm trying to extract contacts from exchange using EWS managed api. I've managed to find Property tags of almost all the fields through this link. Still there are some fields I'm not able to get. The main one is the field "Web Page". Is this field…
1 2 3
99
100