Updated: 20/08/2005; 10:03:42.
Hannes 'Shorty' Decorte's Radio Weblog
Learning .Net and the Experiences doing so


maandag 25 juli 2005

When submitting a task via WebDav to Exchange Server 2003, I noticed that the due date and the start date are not shown in the Outlook task list of the user.
In Outlook Web Access the dates are shown correctly.

First I thought there was something wrong with the format of the dates I passed to Exchange,
but apparantly Outlook and Outlook Web Access use different fields to store the dates.

The following is a list of properties with their
schema GUIDs:


http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-00000­0000046}/


0x8105    Due Date
0x8104    Start Date


http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-00000­0000046}/


0x8517    Due Date
0x8516    Start Date

This is an example of a WebDav message to create a task in Exchange.

<?xml version='1.0'?>
<d:propertyupdate xmlns:d="DAV:"
 xmlns:e="urn:schemas:httpmail:­"
 xmlns:f="http://schemas.microsoft.com/exchange/"
 xmlns:b="urn:schemas-microsoft­-com:datatypes"
xmlns:h1="http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-0000
00000046}/"
xmlns:h2="http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-0000
00000046}/">
 <d:set>
  <d:prop>
   <d:contentclass>urn:content-cl­asses:task</d:contentclass>
   <f:outlookmessageclass>IPM.Tas­k</f:outlookmessageclass>
   <e:subject>Test</e:subject>
   <e:textdescription>This is a test task</e:textdescription>
   <h2:0x8517 b:dt="dateTime.tz">2003-09-12T­13:30:00.00Z</h2:0x8517>
   <h1:0x8105 b:dt="dateTime.tz">2003-09-12T­13:30:00.00Z</h1:0x8105>
   <h2:0x8516 b:dt="dateTime.tz">2003-09-11T­18:45:00.00Z</h2:0x8516>
   <h1:0x8104 b:dt="dateTime.tz">2003-09-11T­18:45:00.00Z</h1:0x8104>
  </d:prop>
 </d:set>
</d:propertyupdate>

I found the solution here via google.


9:17:12 PM    comment []

© Copyright 2005 Hannes 'Shorty' Decorte.
 
July 2005
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
May   Aug


RSS Feed


Other .Net Bloggers

Bart De Smet
Jan Tielens
Patrick Verbruggen
Patrick Tisseghem
Tom van de Kerkhof's Bloggings
Tom's Corner
Yves Hanoulle

Aggregated Feeds

Belgian .NET Bloggers