I am still not able to get the
Task from
exchange working
with
webdav. Can anybody give some more clue regarding
this?
>-----Original Message-----
>Over the past couple days I have been trying, like a lot
of people here, to
>add tasks to the
Exchange Store using
WebDAV. Well this
morning I think I
>may have figured it out.
>1) Problem 1: Using code found in this newsgroup I was
successfull in
>adding a task to exchange but could not get the Due Date,
Start Date, etc to
>show up - even using property IDs found at CDOLive.
> Resolution: After ripping into Outlook using
OutlookSpy I discovered
>that the property IDs (and schema GUID) listed on CDOLive
were incorrect -
>at least for Outlook XP. Interestingly enough, Outlook
XP still includes
>values at the properties listed on CDOLive - probably for
backwards
>compatability. The following is an updated list of
properties with their
>schema GUIDs that is currently working for me:
>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
>0x8503 Reminder Enabled (boolean)
>0x8560 Reminder Date
>0x8502 Reminder Date (Not sure why there are two
properties...)
>0x811C Task Completed (boolean)
>2) Problem 2: After I figured out how to reference
and set these
>properties I ran into another problem. I could not get
the property data
>types to be set correctly.
> Resolution: After changing the namespace for the
data types from the
>one listed by several sources as
>(urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882) to one
found in MSDN
>(urn:schemas-microsoft-com:datatypes) everything worked
fine.
>Here is a listing of the xml, with the new changes, that
I am using to
>successfully create a new 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>
><h2:0x8503 b:dt="boolean">1</h2:0x8503>
><h2:0x8560 b:dt="dateTime.tz">2003-09-
12T12:50:00.00Z</h2:0x8560>
><h2:0x8502 b:dt="dateTime.tz">2003-09-
12T12:50:00.00Z</h2:0x8502>
><h1:0x811C b:dt="boolean">0</h1:0x811C>
></d:prop>
></d:set>
></d:propertyupdate>
>I hope this helps everyone here. Please let me know if
you have any
>problems with it, or any questions.
>Matt Choudoir
>Applications Analyst
>StarTech Computing, Inc.
>651-385-0607
>mchoud...@startech-comp.com
>www.startech-comp.com
>.