Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-03-01
7
Medium Priority
?
1,310 Views
Last Modified: 2012-10-19
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
Comment
Question by:smsstech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 15

Expert Comment

by:Berkson Wein
ID: 35010282
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
 

Author Comment

by:smsstech
ID: 35010310
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
 
LVL 15

Expert Comment

by:Berkson Wein
ID: 35010578
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
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:smsstech
ID: 35011087
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
 
LVL 15

Expert Comment

by:Berkson Wein
ID: 35011397

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
 

Author Comment

by:smsstech
ID: 35011451
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
 
LVL 2

Accepted Solution

by:
pchui earned 2000 total points
ID: 35024447
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

Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question