Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1354
  • Last Modified:

How to I find the MAPI ID of an Assigned Task in Outlook 2007

I am currently writing an application that reads tasks from a Database and creates them in Outlook.

In the database the tasks can be "Assigned" to a particular user and I have the task in outlook get assigned also.

When the task is created in Outlook it is assigned an EntryID and a task is created for the assigned user with a different EntryID

My problem is that if the task in the database get's updated I want to be able to update the Outlook Task as well as update the task for the assigned user.  My problem is that I cannot find where the MAPI ID of the child task is stored.  I have the EntryID of the Parent Task.

I am assuming that the MAPI ID of the assigned task is stored in the parent task or there is a link between the two?

Any help would be appreciated.
0
smsstech
Asked:
smsstech
  • 3
  • 3
1 Solution
 
Berkson WeinTech FreelancerCommented:
I wonder if you could use this instead of having the get the MAPI ID.

Outlook VBA script that gets list of Tasks using the Property Accessor:
http://www.gregthatcher.org/Scripts/VBA/Outlook/GetListOfTasksUsingPropertyAccessor.aspx

0
 
smsstechAuthor Commented:
I have seen this site and have used parts of it but I need the Mapi ID of the assigned task in order to get the child task in order to update it.
0
 
Berkson WeinTech FreelancerCommented:
Now I follow your issue.

When you update the task in Outlook does it not update the person that it was assigned to automatically?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
smsstechAuthor Commented:
No it does not update the child task.  
In the Outlook Client only the person assigned the task can update it.  For the creator of the task it is essentially read only in the client.  The creator of the task will get an update if the child task is updated via the Outlook client.

Programatically I can update the task in the creators task list but it does not update the child "Assigned" task.
0
 
Berkson WeinTech FreelancerCommented:

Not the most glamorous solution, but have you thought of looping through all of the tasks in the assigned person's account to find the one you need to work with?
0
 
smsstechAuthor Commented:
I have thought about it but not an ideal situation, especially if they edit the name of the task in the Database I have no real way to make sure I have the correct task to edit.
0
 
pchuiCommented:
You can look in the assignee's tasks for the item with a matching "TaskGlobalObjId". This is a named MAPI property with guid {00062008-0000-0000-C000-000000000046}, id=0x8519.

 This screenshot shows the property in OutlookSpy
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now