How do I access the AssignedTo property in an outlook 2007 task?

Status
Not open for further replies.
J

JAdams

I've been hunting everywhere but can't put the pieces together. I have a

public folder with tasks that we use with a customized form. The custom form

includes the assign to button and we use it to assign tasks to contacts even

though the functionality doesn't work for public folders. The contact is

saved in the assigned to field, but I can't get access to the AssignedTo

property for a TaskItem. How can I access the AssignedTo property for my

task in vb?

Thanks!
 
K

Ken Slovak - [MVP - Outlook]

Try looking at the Owner property of the task item. Whoever accepted a task

assignment is the new owner.

"JAdams" <JAdams> wrote in message

news:0DA47640-EE06-445A-976E-720DEDED373F@microsoft.com...
> I've been hunting everywhere but can't put the pieces together. I have a
> public folder with tasks that we use with a customized form. The custom
> form
> includes the assign to button and we use it to assign tasks to contacts
> even
> though the functionality doesn't work for public folders. The contact is
> saved in the assigned to field, but I can't get access to the AssignedTo
> property for a TaskItem. How can I access the AssignedTo property for my
> task in vb?

> Thanks!
 
J

JAdams

Re: How do I access the AssignedTo property in an outlook 2007 tas

Hi Ken,

Thanks for the response and I love your website! In this case, the owner is

not the same as the assigned to. Since this is in a public folder, the

assign to functionality (you know asssign, they accept, etc) doesn't work (we

are using standard exchange with ol 2007, not sharepoint.) So the owner is

actually saved as me because I created the task and the assigned to is

another person which basically is just another information field since the

functionality of assignment doesn't really do anything in public folders. I

can close and open the task and it remains this way. I'm scratching my head

as to where the AssignedTo property falls in the object model since it

doesn't appear to be under the Task properties. Any other ideas?

Thanks!

Jeff
wrote:


> Try looking at the Owner property of the task item. Whoever accepted a task
> assignment is the new owner.

> >

>

> "JAdams" <JAdams> wrote in message
> news:0DA47640-EE06-445A-976E-720DEDED373F@microsoft.com...
> > I've been hunting everywhere but can't put the pieces together. I have a
> > public folder with tasks that we use with a customized form. The custom
> > form
> > includes the assign to button and we use it to assign tasks to contacts
> > even
> > though the functionality doesn't work for public folders. The contact is
> > saved in the assigned to field, but I can't get access to the AssignedTo
> > property for a TaskItem. How can I access the AssignedTo property for my
> > task in vb?
> > Thanks!


>
 
K

Ken Slovak - [MVP - Outlook]

Re: How do I access the AssignedTo property in an outlook 2007 tas

There is no AssignedTo property, unless you are creating that as a user

defined property.

I'm not sure how your custom task form is working, normally in a primary

Tasks folder when you assign a task the Owner property changes, as do

various recipient properties such as To. But I have no idea what your form

is doing.

I'd suggest using a MAPI viewer such as the free MFCMAPI from an MS download

or OutlookSpy (www.dimastr.com) and taking a look at the properties on an

item before and after you assign it with your custom form. That would be the

best way to go about finding that information.

"JAdams" <JAdams> wrote in message

news:9117D3D4-C2DD-4D07-A4F7-696F9B539C43@microsoft.com...
> Hi Ken,

> Thanks for the response and I love your website! In this case, the owner
> is
> not the same as the assigned to. Since this is in a public folder, the
> assign to functionality (you know asssign, they accept, etc) doesn't work
> (we
> are using standard exchange with ol 2007, not sharepoint.) So the owner
> is
> actually saved as me because I created the task and the assigned to is
> another person which basically is just another information field since the
> functionality of assignment doesn't really do anything in public folders.
> I
> can close and open the task and it remains this way. I'm scratching my
> head
> as to where the AssignedTo property falls in the object model since it
> doesn't appear to be under the Task properties. Any other ideas?

> Thanks!
> Jeff
 
J

JAdams

Re: How do I access the AssignedTo property in an outlook 2007 tas

Hi Ken,

Thanks for the info. I downloaded MFCMAPI and I can now see the property.

It is labeled PR_DISPLAY_TO_A, othername = PR_DISPLAT_TO_W, PidTagDisplayTo.

There's no property similar in the task properties. It appears along with

the BCC and CC, so I suspect it resides somehow in a mailitem object even

though this is definitely a task item. Can you help me out on how to access

it?

Thanks!
wrote:


> There is no AssignedTo property, unless you are creating that as a user
> defined property.

> I'm not sure how your custom task form is working, normally in a primary
> Tasks folder when you assign a task the Owner property changes, as do
> various recipient properties such as To. But I have no idea what your form
> is doing.

> I'd suggest using a MAPI viewer such as the free MFCMAPI from an MS download
> or OutlookSpy (www.dimastr.com) and taking a look at the properties on an
> item before and after you assign it with your custom form. That would be the
> best way to go about finding that information.

> >

>

> "JAdams" <JAdams> wrote in message
> news:9117D3D4-C2DD-4D07-A4F7-696F9B539C43@microsoft.com...
> > Hi Ken,
> > Thanks for the response and I love your website! In this case, the owner
> > is
> > not the same as the assigned to. Since this is in a public folder, the
> > assign to functionality (you know asssign, they accept, etc) doesn't work
> > (we
> > are using standard exchange with ol 2007, not sharepoint.) So the owner
> > is
> > actually saved as me because I created the task and the assigned to is
> > another person which basically is just another information field since the
> > functionality of assignment doesn't really do anything in public folders.
> > I
> > can close and open the task and it remains this way. I'm scratching my
> > head
> > as to where the AssignedTo property falls in the object model since it
> > doesn't appear to be under the Task properties. Any other ideas?
> > Thanks!
> > Jeff


>
 
J

JAdams

Re: How do I access the AssignedTo property in an outlook 2007 tas

Hi Ken,

One thought, I just realized. I use a custom form and the item is

displaying as a post item. I instantiate my retrieval as taskitems, and I'm

able to retrieve them and view the properties in that context. But perhaps I

should be using a different model?

Thanks!
wrote:


> There is no AssignedTo property, unless you are creating that as a user
> defined property.

> I'm not sure how your custom task form is working, normally in a primary
> Tasks folder when you assign a task the Owner property changes, as do
> various recipient properties such as To. But I have no idea what your form
> is doing.

> I'd suggest using a MAPI viewer such as the free MFCMAPI from an MS download
> or OutlookSpy (www.dimastr.com) and taking a look at the properties on an
> item before and after you assign it with your custom form. That would be the
> best way to go about finding that information.

> >

>

> "JAdams" <JAdams> wrote in message
> news:9117D3D4-C2DD-4D07-A4F7-696F9B539C43@microsoft.com...
> > Hi Ken,
> > Thanks for the response and I love your website! In this case, the owner
> > is
> > not the same as the assigned to. Since this is in a public folder, the
> > assign to functionality (you know asssign, they accept, etc) doesn't work
> > (we
> > are using standard exchange with ol 2007, not sharepoint.) So the owner
> > is
> > actually saved as me because I created the task and the assigned to is
> > another person which basically is just another information field since the
> > functionality of assignment doesn't really do anything in public folders.
> > I
> > can close and open the task and it remains this way. I'm scratching my
> > head
> > as to where the AssignedTo property falls in the object model since it
> > doesn't appear to be under the Task properties. Any other ideas?
> > Thanks!
> > Jeff


>
 
K

Ken Slovak - [MVP - Outlook]

Re: How do I access the AssignedTo property in an outlook 2007 tas

You need to set the large and small icons for any custom form on the

Properties tab or it will display with a Post item icon.

"JAdams" <JAdams> wrote in message

news:DB51CA57-9255-4A4E-A792-EB768E375C47@microsoft.com...
> Hi Ken,

> One thought, I just realized. I use a custom form and the item is
> displaying as a post item. I instantiate my retrieval as taskitems, and
> I'm
> able to retrieve them and view the properties in that context. But
> perhaps I
> should be using a different model?

> Thanks!
 
K

Ken Slovak - [MVP - Outlook]

Re: How do I access the AssignedTo property in an outlook 2007 tas

Since that property is not exposed directly for a task in the Outlook object

model you would need to use the PropertyAccessor object in Outlook 2007, or

some other API in other versions of Outlook to access that property using a

MAPI property tag.

CDO 1.21 (no managed code, optional installation, security restrictions),

Extended MAPI (unmanaged code only, C++ or Delphi only), or Redemption

(www.dimastr.com/Redemption) can be used for that.

"JAdams" <JAdams> wrote in message

news:A04BA650-39FA-4E69-B5ED-C746A772B5B4@microsoft.com...
> Hi Ken,

> Thanks for the info. I downloaded MFCMAPI and I can now see the property.
> It is labeled PR_DISPLAY_TO_A, othername = PR_DISPLAT_TO_W,
> PidTagDisplayTo.
> There's no property similar in the task properties. It appears along with
> the BCC and CC, so I suspect it resides somehow in a mailitem object even
> though this is definitely a task item. Can you help me out on how to
> access
> it?

> Thanks!
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
richardwing Outlook 365 VBA to access "Other Actions" menu for incoming emails in outlook Outlook VBA and Custom Forms 0
V How to add 'Previous Item' and 'Next Item' to the Quick Access Toolbar Using Outlook 1
J Text icon in Quick Access toolbar ? Using Outlook 2
Z Import Tasks from Access Using VBA including User Defined Fields Outlook VBA and Custom Forms 0
klpconsulting Programmatic Access Office 365 Pro Plus & RDS Using Outlook 1
Fozzie Bear Shared Public Folders Access and Use Exchange Server Administration 0
G How to add a folder shortcut to outlook quick access toolbar? Using Outlook 6
D Lost Access to Custom Form Outlook VBA and Custom Forms 4
Jennifer Murphy Grant R/W (update) access to a friend Using Outlook 3
O The page that you are trying to access cannot be loaded. Using Outlook 0
T Render Outlook emails in MS access as they appear in Outlook Outlook VBA and Custom Forms 2
T Outlook "A program is trying to access Outlook" Using Outlook 3
GregS Can't access archive file Using Outlook 5
J What is the best EntryID format to set on MS Access table Outlook VBA and Custom Forms 3
J No access to a Database BCM BCM (Business Contact Manager) 3
R How can I access my emails from corrupt offline files of MS Outlook ? Using Outlook 1
V Change default default save location to Quick Access Using Outlook 1
R Quick Access view in File Explorer when saving attachments Using Outlook 0
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
J Open an outlook email by Subject on MS Access linked table with VBA Outlook VBA and Custom Forms 10
G Windows Update Causes BCM Database Access Problem? BCM (Business Contact Manager) 4
D populating listbox on custom form from Access Outlook VBA and Custom Forms 7
O Synchronize safe persons Outlook 2016 -> Outlook Web Access (OWA) Using Outlook 30
K How to access emails found to be located in "Top of Outlook data file"? Using Outlook 3
R Categorize Button in Quick Access Toolbar Disappears on New Email Using Outlook 1
O Outlook Web Access - how to disable spam filter Using Outlook 6
T Lost access to remote BCM database BCM (Business Contact Manager) 4
F Outlook 2016 bulk email from access Outlook VBA and Custom Forms 3
J Programmatic access grayed out Using Outlook 10
Diane Poremsky Synchronize Quick Access Toolbar and Ribbons? Using Outlook 0
G Can't open .pst. Message could not access default folder (Outlook 2010 (.pst). Before that was backi Using Outlook 0
D Creating an outlook session from Access vba but run silently. With A specific profile Outlook VBA and Custom Forms 1
T Cannot access outlook.com accounts in Outlook 2016 Using Outlook 1
B Can't expose sender email address when linking outlook to access Using Outlook 3
Diane Poremsky Change Outlook's Programmatic Access Options Using Outlook 0
S how to access the properties of a contact given distlist.member object Outlook VBA and Custom Forms 1
C OWA External Access - No URL / URL Invalid Exchange Server Administration 2
G Adding a contact to Outlook with a custom form using Access VBA Outlook VBA and Custom Forms 1
C Merging Word and Access into Outlook Using Outlook 4
I Outlook 2016 and Slow access to Outlook.com IMAP Using Outlook 0
B No permission to access Outlook.pst file Using Outlook 1
Norbert VBA Flag that would indicate the email was sent from Outlook to Access. Outlook VBA and Custom Forms 2
M Cannot access the Form Editor BCM (Business Contact Manager) 1
R The changing way to access information in Office 365 Using Outlook 0
M Modifying BCM Database using Access BCM (Business Contact Manager) 1
iwshim Skype tool bar in quick access ribon Using Outlook 1
JorgeDario restrict access to a certain folder with vba Outlook VBA and Custom Forms 3
U Cannot access fields at bottom of Outlook 2013 Contact Rec. Using Outlook 1
S Can't move the items. The item could not be moved. It was either already moved or deleted, or access Using Outlook 3
A Synchronize Access Table with Outlook Calendar Appointments Outlook VBA and Custom Forms 3

Similar threads

Top