ews

Where are Exchange Web Services: ExtendedPropertyDefinition IDs defined?

In researching how to use Exchange Web Services, I see examples like this Dim PR_DELETED_ON As New ExtendedPropertyDefinition(26255, MapiPropertyType.SystemTime) Dim PR_SEARCH_KEY As New ExtendedPropertyDefinition(12299, MapiPropertyType.Binary) That first parameter is an int that represents the property ID. Can anyone give me a poin...

How to get contact list from Exchange Server?

Can anyone tell me the simplest way to get a contact list from Exchange Server? I'm using C# From what I found out, Exchange Web Services only exists for Exchange Server 2007 and beyond. That would be my first option, but I'd also like an alternative for previous versions of Exchange (WebDav or something). Directory Services is not an o...

Entitlement Web Service Authentication

I was tasked with implementing either a SAML authentication service, or a EWS (Entitlement Web Service Authentication) service, and I was wondering if anyone has any samples or documentation on such options. I am almost 100% sure that SAML is out of the question due to the time frame of the project. EWS has been difficult to find online...

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...

exchange web service SyncState size

Does anyone know how big SyncState can get? This is the value used by the SyncFolderItems() call in Exchange Web Services 2007 SP1. We need to store this value in a database for subsequent calls, and I can't find any documentation that says how large it can get. Except for things like "this can get large". ...

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...

How to change AppointmentStatus in managed Exchange Web Services

Hi all! I need to change appointment status to meeting, so that it invitations can be send by one click. But Appointment.AppointmentStatus and Appointment.IsMeeeting are read only properties. I've found, using reflector, that PropertyBag class is used for setting and getting items properties, but it's also internal. Can I change this pro...

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...

EWS appointment reminders

I'm getting appointment items of an account by ews as CalendarItemType object... this got an item as AppointmentState. i looked msdn and it has only (noattendees,is meeting,recieved,cancelled,forwaded values) but how to get reminder values(snooze,dismissed e.g) and if snoozed got snooze time and the current status of appoinment(cancel...

using EWS differences beetwen with Exchange 2010 server and Exchange 2007 server

I 'm using EWS to cominicate with Exchange Servers both 2010 and 2007... There is a versionning property for ExchangeServerBinding object. I googled but found out any critical differences while EWS working with Exchange2010 and Exchange2007.. So is there any differences while accessing Exchange2010 and Exchange2007 with EWS? ...

Search EWS CalendarItems with last modified time

I'm searching CalendarItems with ExchangeWebServices..In msdn document there is a field as LastModifiedTime. How do I query CalendarItems by LastModifiedTime with ExchangeServerBindings ? ...

When using EWS from within a website, is it possible to use the current logged in users identity?

I have a web application using Forms authentication provided by AD. I would like to know if it's possible to use EWS to send mail as the currently logged in user without having to supply credentials, or; would I be required to set up an account with impersonating access which will send mail on behalf of the currently logged in user? ...

EWS api editing contact's photo

Hi all i'm using EWS api to add contact information as code description below on exchange2007 server.. but how to add contact's photo ?? CreateItemType createItemType = new CreateItemType(); // Because you are creating a contact, save the item in the Contacts folder. createItemType.SavedItemFolderId = new Tar...

How to loop through mails in Exchange using EWS ?

I've been given the task of fetching a list of the largest mails in our Exchange 2007 server. Since I've never coded against Exchange before, I looked around a bit and figured EWS is the newest interface to do so. However I can't find any documentation about looping through the mails, which I expect to be necessary to check the sizes. ...

Getting started with Exchange Web Services 2010

I've been tasked with writing a SOAP web-service in .Net to be middleware between EWS2010 and an application server that previously used WebDAV to connect to Exchange. (As I understand it, WebDAV is going away with EWS2010, so the application server will no longer be able to connect as it previously did, and it is exponentially harder to...

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...

EWS - How to search for items [message] between dates ?

I am trying to search for message items between two dates from the inbox folder. I use the following restrictionType but it throws this error: firmt.RootFolder = null What am I doing wrong? There is some messages between the mentionned dates ;-) Thanks for your suggestions. using (ExchangeServiceBinding esb = new ExchangeSer...

How do you bypass TLS/SSL cetification validation in WCF for Exchange Web Services

I wan't to bypass SSL and use regular http protocol to connect to a Exchange 2007 server however we dont want to invest in a real SSL cert and the one we use is needed for blackberry enterprise server. Is there a way to bypass this here is the exception Request failed. The underlying connection was closed: Could not establish trust r...

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...