HOWTO: EWS: Update IsRead Flag for items using Exchange Web Services

First thing first, you cannot use Exchange Web Services (as of now) to update the IsRead flag for items other than MessageType. MessageType has IsRead property in place to update the MAPI property PR_MESSAGE_FLAGS. Product group is aware of this limitation and very soon we should see an fix for this. In the mean time…

16

My first post using Windows Live Writer, it’s so damn easy with WYSIWYG

  Windows Live Writer – Rocks!!!  – See the demo   First time blogger??? You REALLY need Windows Live Writer!!! I cannot forget those days when I stopped blogging because it used to be a pain blogging using a Web Editor. I have used many Blog Editing Software and Windows Live is what I have…

0

Inside Microsoft Exchange 2007 Web Services is out on stores… go grab a copy today

The most awaited book on programming Exchange 2007 Server using Exchange Web Services is out. Get it here – http://www.microsoft.com/MSPress/books/10724.aspx No doubts that Exchange Web Services is next big thing and there is lot more to come in this space, fasten the seatbelt and get ready for Exchange Web Services   Keywords: Exchange Web Services,…

0

HOWTO: EWS: Consume Exchange Web Service from VBScript

Yes you can consume Exchange Web Service using VBScript or any language / platform which support HTML. In this sample, I have used XMLHTTP to send/receive soap request/response. Then I have used MSXML Document to parse the XML returned by the server to get the response code. I have converted my recently posted sample, HOWTO:…

7

HOWTO: EWS: Disable Out-of-office / OOF message

WebDav is definitely de-emphasized and not recommended to develop applications for Exchange 2007. But WebDav was still the easiest method to disable OOF message. I was not surprised to see it NOT working against Exchange 2007 to disable the OOF message. I have a better solution for you… use my favorite technology, Exchange Web Services!!!…

4

HOWTO: EWS: Find all folders inside a parent folder, helpful in generating a folder tree

Looks cool isn’t it? I have created this folder tree for my mailbox using Exchange Web Services. You can do the very same. Here is the code which I am using to get all the folders inside a folder and recursively go deep-n-deep until your reach the core. Here is the sample code…          …

11

HOWTO: OOM: Getting Primary SMTP Address from X500

Getting primary address from X500 address was always a pain when using OOM. Thank to these guys who realized this pain and built in this functionality in Outlook 2007 Object Model. I have figured out a way to get this value from within OOM for Outlook 2003 & below as well. How it works ============…

5

HOWTO: EWS: Add attachments to existing items on server

Forgot to add that attachment? Using exchange web service you can add it back to the item on the server. The code is simple and very easy to understand. It takes two parameters itemID – where attachment will be added, & strFileName – complete path to the local file. private bool AddAttachment(String itemID,String strFileName) {…

4

HOWTO: EWS: Get LastModifiedTime for Items

So wondering where is LastModifiedTime? Exchange Web Services does not seem to give you the hint when the item was last modified. This property is not available in ItemType and expected to be available only after Exchange 2007 SP1. You can get the LastModifiedTime with the help of ExtendedProperty. I have created a sample to…

4