Questions tagged [ews-managed-api]

Exchange Web Services (EWS) API that can be used to access Exchange resources.

Microsoft Exchange Server 2007 introduces Exchange Web Services (EWS), a API that can be used to access Exchange resources. EWS is a SOAP-based XML Web service that can be accessed remotely from any operating system and any language that can send requests over HTTPS.

Creating a new folder in the Inbox

Folder folder = new Folder(service); folder.DisplayName = "My new folder"; folder.Save(WellKnownFolderName.Inbox);

Creating and saving a draft e-mail message

EmailMessage message = new EmailMessage(service); message.Subject = "Hello from the EWS Managed API"; message.Body = "Now that's easy!"; message.ToRecipients.Add("someone@fabrikam.com"); message.Save();

370 questions
7
votes
1 answer

Unable to load MimeContent via EWS in Exchange Server 2013

I have a problem with loading MimeContent property using EWS with Exchange Server 2013. Here's what I do: var propertySet = new PropertySet{ ItemSchema.Subject, ItemSchema.TextBody, ItemSchema.DateTimeCreated, …
7
votes
1 answer

O365 , EWS Managed API and ExchangeVersion

If I am using the Exchange Web Services Managed API v2.2 to connect with O365 then which ExchangeVersion should I use? It seems to me that it would make sense that I should always use the latest version as I assume O365 is always the latest version…
oatsoda
  • 2,088
  • 2
  • 26
  • 49
7
votes
2 answers

Exchange Web Services - Processing Messages and Accessing Attachments

I'm in the process of writing a simple console app that monitors a particular exchange mailbox, and when emails meeting particular criteria are received, the app will download an XML file attachment, and archive the email. I've connected to EWS OK,…
CJM
  • 11,908
  • 20
  • 77
  • 115
7
votes
3 answers

What is the maximal size of an ItemView in EWS?

The ViewSize is specified at constructor level. I found the documentation for the constructor, but it doesn't say how big the maximal size is.
Luke
  • 1,768
  • 2
  • 20
  • 30
6
votes
3 answers

Exchange Web Services and Property Sets

I need to retrieve calendar information by invoking the Exchange Web Service in BPOS. I'm using a CalendarView with a PropertySet to retrieve as little data as possible. However, property sets seems to be limited. I need the EmailAddress of the one…
Sam
6
votes
1 answer

Multiple PushNotification Subscriptions some work properly and some don't

I tried posting this on the Exchange Development forum and didnt get any replies, so I will try here. Link to forum I have a windows services that fires every fifteen minutes to see if there is any subscriptions that need to be created or updated. I…
6
votes
3 answers

C# create calendar item with EWS, how to get back the results?

I build an app based on this site http://msdn.microsoft.com/en-us/library/dd633661%28v=EXCHG.80%29.aspx appointment.Subject = "Status Meeting"; appointment.Body = "The purpose of this meeting is to discuss status."; appointment.Start = new…
Data-Base
  • 8,418
  • 36
  • 74
  • 98
6
votes
1 answer

Microsoft.Exchange.WebServices.Data.ServiceValidationException: The property RequiredAttendees can't be used in FindItem requests

I am accessing appointment attendees from an EWS Calendar. I tried: cView.PropertySet = new PropertySet(AppointmentSchema.Subject, AppointmentSchema.Start, AppointmentSchema.End); But my appointments list…
6
votes
2 answers

How do I get folder size with Exchange Web Services 2010 Managed API?

I'm attempting to use EWS 2010 Managed API to get the total size of a user's mailbox. I haven't found a web service method to get this data, so I figured I would try to calculate it. I found one seemingly-applicable question on another site about…
Adam Tuttle
  • 19,505
  • 17
  • 80
  • 113
6
votes
2 answers

how to unsubscribe from EWS push notification using managed API

I am using EWS managed API to do push subscription. Works fine Now I want to unsubscribe The managed API docs http://msdn.microsoft.com/en-us/library/office/dn458791(v=exchg.150).aspx say use service.EndSubscribeToPushNotifications. This is clearly…
pm100
  • 48,078
  • 23
  • 82
  • 145
6
votes
5 answers

EWS: Retrieving attachments from signed emails

I have a C# program that manages a resource mailbox by retrieving attachments and categorizing emails into sub-folders. An issue came up recently where the client wishes to send us signed emails, so when the program retrieves their attachments a…
Grant Bartel
  • 363
  • 1
  • 3
  • 21
5
votes
2 answers

EWS: 'Set action is invalid for property' when editing RequiredAttendees

Before you close this as a duplicate please look at the other similarly titled question, there is no answer to the problem he just marked it as answered and left. I am getting this lovely and descriptive error from the EWS manged API whenever I…
FlyingStreudel
  • 4,434
  • 4
  • 33
  • 55
5
votes
1 answer

Exchange Appointment Types

I use the following code to save an appointment via Exchange Web Services Managed API: Appointment appointment = new Appointment(m_exchangeService); appointment.Subject = subject; appointment.Body = body; appointment.Start = start; appointment.End =…
Luke
  • 5,771
  • 12
  • 55
  • 77
5
votes
1 answer

Creating appointment on Exchange server calendar as other user without impersonation (EWS)

I am creating simple app for appointments scheduling and I want to implement ability for me to create appointments for my users. I managed to create,update and delete my calendar on Exchange Server, and I somewhat managed to create appointments…
Kadaj
  • 615
  • 3
  • 13
  • 31
5
votes
0 answers

Office 365 - EWS Managed API 2.0 Impersonation 401 unauthorized/503 not available

private ExchangeService connectToEWS(string email, bool impersonate = false) { WebCredentials credentials = new WebCredentials(username, password, domain); ExchangeVersion version = (ExchangeVersion)exchangeVersion; ExchangeService service…
Doug
  • 149
  • 2
  • 11
1 2
3
24 25