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-000000000046}/
0x8105 Due Date 0x8104 Start Date
http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/
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-classes:task</d:contentclass> <f:outlookmessageclass>IPM.Task</f:outlookmessageclass> <e:subject>Test</e:subject> <e:textdescription>This is a test task</e:textdescription> <h2:0x8517 b:dt="dateTime.tz">2003-09-12T13:30:00.00Z</h2:0x8517> <h1:0x8105 b:dt="dateTime.tz">2003-09-12T13:30:00.00Z</h1:0x8105> <h2:0x8516 b:dt="dateTime.tz">2003-09-11T18:45:00.00Z</h2:0x8516> <h1:0x8104 b:dt="dateTime.tz">2003-09-11T18:45:00.00Z</h1:0x8104> </d:prop> </d:set> </d:propertyupdate>
I found the solution here via google.
9:17:12 PM
|