InfiniTec - Henning Krauses Blog

Don't adjust your mind - it's reality that is malfunctioning

Retrieve all MAPI Properties of an Exchange Item

Solution

The Web Storage System of the Exchange system allows one to access the various properties of any item (e.g. a mail or appointment) via WebDAV.

To retrieve a list of all available properties, the WebDAV Propfind method is used, as displayed below:

    1 PROPFIND /public/container/ HTTP/1.1

    2 Host: www.contoso.com

    3 Depth: 0

    4 Content-type: text/xml;

    5 Content-Length: XXXXX

    6 

    7 <?xmlversion="1.0" ?>

    8 <D:propfindxmlns:D="DAV:">

    9   <D:allprop />

   10 </D:propfind>

However, this request will only return the named properties, such as the displayname, etc. The MAPI-Properties are not included in the list. Instead, the following request should be used, which uses the undocumented http://schemas.microsoft.com/exchange/allprop tag:

    1 PROPFIND /public/container/ HTTP/1.1

    2 Host: www.contoso.com

    3 Depth: 0

    4 Content-type: text/xml;

    5 Content-Length: XXXXX

    6 

    7 <?xmlversion="1.0" ?>

    8 <D:propfindxmlns:D="DAV:"xmlns:E="http://schemas.microsoft.com/exchange/">

    9   <D:allprop>

   10     <E:allprop />

   11   </D:allprop>

   12 </D:propfind>


Technorati:

Posted by Henning Krause on Friday, December 31, 2004 12:00 AM, last modified on Tuesday, April 11, 2006 12:00 PM
Permalink | Post RSSRSS comment feed