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
mcho...@startech-comp.com
www.startech-comp.com
http://msdn.microsoft.com/library/en-us/pr2ksdk/html/copyingtaskstoexchange.asp
It doesn't include the reminder property values or the task complete values,
but does include the percent complete values.
- Dave
"Matt Choudoir" <mcho...@startech-comp.com> wrote in message
news:%23sgUJmH...@tk2msftngp13.phx.gbl...
Regards
"Matt Choudoir" <mcho...@startech-comp.com> wrote in message
news:%23sgUJmH...@tk2msftngp13.phx.gbl...
>.
>
I don't see any difference on http://www.cdolive.com/cdo10.htm except that
the page lists the property set ID's for CDO 1.21 and not for MAPI/ADO/CDOEX
(but that's a known issue and the mentioned MSKB article shows the
resolution for it).
>
http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/
>
> 0x8517 Due Date
> 0x8516 Start Date
> 0x8503 Reminder Enabled (boolean)
Those are also listed on the above mentioned page correctly.
> 0x8560 Reminder Date
This is actually the reminder next time property (not listed on the above
mentioned page)
> 0x8502 Reminder Date (Not sure why there are two properties...)
And this is the real reminder date (listed on the page mentioned above.
> 0x811C Task Completed (boolean)
Also listed on the page mentioned above.
Also don't forget to set the Task status (0x8101) to complete, the date
completed (0x810F), the percent complete (0x8102). There's probably more but
that's what worked for me...
--
Cheers,
Siegfried Weber