VBA Unique Identifier for Task for Updating through Email

  • Thread starter Thread starter Ryan Hubbard
  • Start date Start date
R

Ryan Hubbard

Outlook updates tasks assigned to another person through email. I
would to intercept that update and use it to update a task NOT in the
default Task folder. Does anyone know how outlook identifies the task
in the default folder when give an TaskUpdateItem via email. Is there
a unique identifier field that it matches? Thanks in advance

Ryan
 
Look in the Object Browser at the TaskRequestUpdateItem item. It has a
GetAssociatedTask method.
 
Thanks for the suggestion but the TaskRequestUpdateItem will only
retreive the task if IT IS IN THE DEFAULT TASK FOLDER. These tasks
that I wish to update ARE NOT in the defualt task folder. Anyone have
any ideas??
 
PR_STORE_RECORD_KEY (0x0FFA0102) in the update message is link to the
original task item (it is used as EntryID to get the original task
message). However, if the task item is moved to a different folder
that ID is no longer valid. That's why Outlook can only update items
in the default Tasks folder. You would have to parse the update
message when it comes in for various properties and match those
properties to ones in items in the non-default folder. There is no
easier way.
 
Ken,
Thanks for the info, but what if the task origniated in a non
default folder. So it was never moved? I have written a script to
iterate through the EntryID property on the original tasks in and
outside the default task folder and attempted to match them with the
TaskRequestUpdateItem coming in from an assigned updated task. So
heres what I did. I created a task in the default task folder and
assigned it to someone. I then created a task in a seperate non
default folder and assigend it to the same person. I then has the
person update both tasks. When the TaskRequestUpdateItem arrived in
the mailbox my script iterated through the TaskRequestUpdateItem
EntryId property and attemted to match both of them against any
entryID in the task folders and none of them matched. Is there a
certain portion of the entryID that I can match because the entire
EntryID does not match even the original task in the default task
folder. Thanks for your help Ken I appreciate it and have a happy
holiday.

Ryan
 
Sorry, look at PR_RECORD_KEY (0x0FF90102). The first 38 bytes of that
field are the same for the original item, an acceptance and updates.
 
Back
Top