Very cool! I'd never noticed that feature! It turns out to be quite interesting indeed (thanks to Outlook Spy). Apparently the task knows about the appointment dates, but nothing more than that. But the appointment definitely knows about the task, even though it doesn't show such a link in the UI (at least not that I could find).
These two properties in the task contain information about the related appointments:
http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/85B21102 (PT_MV_BINARY)
I'm not sure what it does.
http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/85B31003 (PT_MV_LONG)
This holds the minutes since 1/1/1601, which Outlook apparently uses to show the appointment dates in the task's infobar.
In the appointment, this property contains the EntryID of the related task or possibly tasks, since it's multivalued:
http://schemas.microsoft.com/mapi/id/{00062002-0000-0000-C000-000000000046}/820C1102 (PT_MV_BINARY)
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
Seppo Kabongo said:
Hi,
In the Calendar folder, select the "Day" or "Week" view. Under the view you
should be able to see the "Daily Task List", if not you can activate it from
View>Daily Task List>Normal. From here you can drag any task to the calendar.
If you "right" -drag the task to the calendar you should get a menu with
different options. After dragging the task to the calendar, open the task and
you should see an info above the task subject. The info looks like:
(Appointment(s) on: mon dd.mm.yyy hh:mm; tue dd.mm.yyyy hh:mm; wed
dd.mm.yyyy hh:mm, and so on)
I need to know how the task knows about the appointments. I'm creating an
add-in that will track appointments copied from a selected task...