ews-managed-api

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 who made the calendar appointment so I thought I could use the AppointmentSchema.Organizer...

Using ExchangeService to Add Appointment Occurances

The target is someone's Exchange Calendar (2007). I want to add a simple "Appointment Occurance" to someone's calendar. This code works (I am using the Microsoft.Exchange.WebServices.dll): service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); service.Credentials = new NetworkCredential("supervisor", "password", "DOMAIN.COM");...

Are extra installs needed to access Managed EWS on an Exchange 2010 server?

Does the system administrator need to install anything extra to get EWS Managed API working for clients on Exchange 2010? At the moment I am getting problems just using AutoDiscover via the managed API so I'm beginning to think the server has been configured incorrectly. Has any administrator here had any experience with setting up Exch...

How to get Item web client id in Exchange 2007 using EWS Managed API

I have an EmailMessage item saved in Draft folder. I need to open an editing form of it in browser, but cannot found id that is used by web client. In documentation there is such property, but it fails with Microsoft Exchange Server 2007. What is alternative? Any help is appreciated. ...

How do I retrieve global contacts with Exchange Web Services (EWS)?

I am using EWS and wish to obtain the global address list from exchange for the company. I know how to retrieve the personal contact list. All the samples in the API documentation deal with updating user information but not specifically how to retrieve them. I've even tried the following to list the folders but it doesn't yeild the cor...

Exchange: Is it possible to search for a custom Extended Property across all mailboxes?

My team and I are in the process of integrating our custom CRM (built entirely on the MS stack) with Exchange. A key part of that integration is binding Exchange items (namely meetings and tasks) to customer records. Basically, when a salesperson schedules a meeting with a certain customer, the customer's GUID is attached to that meeti...

Using EWS Managed API to create appointments for other users?

In EWS Managed API is it easy to create an appointment for a specific user: ExchangeService service = new ExchangeService(); service.Credentials = new NetowrkCredentials ( "administrator", "password", "domain" ); service.AutodiscoverUrl(emailAddress); Appointment appointment = new Appointment(service); appointment.Subject = "Testing"; ...

EWS 2010: Public Folder Problem using .NET

I've recently coded a .NET Console app using C#. It's purpose was to read the emails within a specific folder, parse them for specific values and save them to a database. Our email system, at the time I originally coded this, was Exchange 2003. However, I was made aware we would soon be upgrading to Exchange 2010: ergo, I built the code...

Folder.Bind - "Id is malformed" - Exchange Web Services Managed API

I'm passing the Folder.Id.UniqueId property of a folder retrieved from a FindFolders query via the query string to another page. On this second page I want to use that UniqueId to bind to the folder to list its mail items: string parentFolderId = Request.QueryString["id"]; ... Folder parentFolder = Folder.Bind(exchangeService, parentFo...

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 finding mailbox sizes with EWS 2007, but either I'm not understanding what it's asking me to...

Unexpected end of XML document - EWS

Hi, Every time I run the following piece of code I get 'Unexpected end of XML document.' exception. I have tried Microsoft's EWSEditor 1.6.1.1 and get the same exception which suggests it could be an exchange service issue. Any ideas would be appreciated. Thank you. ExchangeService service = new ExchangeService(ExchangeVersion.Exchange...

Due Date set via EWS is wrong in reminder popup

I'm having some trouble using EWS with tasks and reminders, specifically, the due date. When I run my code, shown below, the task is added to my exchange account and I can see it fine in outlook. All the data in it looks fine too. However, if I specify to have a reminder for the task, the due date it shows is very wrong. It's usually 1...

How can I detect if this dictionary key exists in C#?

I am working with the Exchange Web Services Managed API, with contact data. I have the following code, which is functional, but not ideal: foreach (Contact c in contactList) { string openItemUrl = "https://" + service.Url.Host + "/owa/" + c.WebClientReadFormQueryString; row = table.NewRow(); row["FileAs"] = c.FileAs; ro...

EWS Managed API: Only one usage of each socket address (protocol/network address/port) is normally permitted

We're developing software that allows our custom scheduling application (master role) to synchronize with Microsoft Exchange Server 2010/2007 (slave role). Our solution is based on .NET 4.0, the EWS Managed API and Parallel Fx, and of course our own C# code. We've taken special care of the fact that "ExchangeService" class instances are ...

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, and have been able to loop through any emails, but I'm struggling when it comes to create...

Exchange 401 Unauthorized

I am trying to connect to our exchange 2007 server. I have placed lots of exception handling to catch any errors and put them in the application log. Firstly, I have a function which ensures that a user can access the exchange service with the provided credentials: public bool Logon() { string pwd = /*Get password*/; try ...

How can I narrow down the point of failure in this ASP.NET ASMX to Exchange 2010 Managed API setup?

Since working with Exchange Web Services 2010 is a bit ridiculous, especially from anything other than .NET, I've been tasked with wrapping some functionality up in a SOAP web service that acts as a pass-through for other languages to interact with our Exchange environment. [Misc] <-(SOAP)-> ASP.NET ASMX web service <-(EWS Managed AP...

Pass windows credentials to Exchange 2007 web service VB.NET

I am trying to interop to Exchange 2007 via its web-services and have the following issue; Authentication mode = “windows” in the web.config…. Why isn’t the default credential passing the current user to the exchange webservice (EWS)? Dim esb As New mailserver.ExchangeServiceBinding() 'Provide the NetworkCredential esb....

How do I do a Find operation with ReminderDueBy as a Paramater? [Microsoft.Exhange.WebServices]

I am using the Microsoft.Exchange.WebServices assembly and am trying to retrieve Appointments which have a Reminder set to go off in a certain time period. So basically I create a SearchFilter object using AppointmentSchema.ReminderDueBy: SearchFilter.IsGreaterThanOrEqualTo startTime = new SearchFilter.IsGreaterThanOrE...

Creating Tasks for other users using Exchange Web Services (EWS) Managed API

As an "EWS Managed API Newbie", I'm having some problems finding examples and documentation about creating and managing Tasks. I've managed to create a task for myself without a problem. However, I really need to be able to do the following - if anyone could give me any pointers I'd really appreciate it... Create a Task and assign it...