There is no specific event for marking a task as complete. You would have to
handle the ItemChange event for the Items collection of the folder you are
interested in and see if the item is now marked complete.
There is no OnSave event for items in the Outlook object model. There's a
..Save event for items but you have to then have each possible item that
could be saved instantiated to handle events. That would be relatively easy
if the user opens each item before marking it complete and saving it but
that doesn't have to be. The user could mark it complete from a folder view
(Explorer) and then you'd have to trap each change in Explorer.Selection and
instantiate an event handler for each selected item and change each time
selection changed.
What API or object model are you using? Properties in Outlook would be
Complete and Status, the property tags would be irrelevant. You could read
the Complete Boolean property or check Status for olTaskComplete (2).
Where did you get those values for Complete and Status?
In MAPI terms Complete would be
GetIDsFromNames("{00062003-0000-0000-C000-000000000046}", 0x811C) OR
PT_BOOLEAN and Status would be
GetIDsFromNames("{00062003-0000-0000-C000-000000000046}", 0x8101) OR
PT_LONG.
Complete and Status are named properties and the tag sym values would vary
from mail store to mail store. For example on my Exchange mailbox the tag
sym for Complete is 0x8044 and for Status it's 0x807B. You cannot depend on
a named property having the exact same value on different mail stores, you
have to use some method like GetIDsFromNames to get the actual property tag
for that specific mail store.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.