View Single Post
  #2  
Old October 9th 09, 08:46 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Set "Assigned To" for a Contact Item

Where do you get Assigned To from, and where did you find that property tag?

Is this similar to assigning a task to someone? For that you have the Owner
and Delegator properties, not assigned to. Both of those properties are in
the "{00062003-0000-0000-C000-000000000046}" namespace, along with most task
named properties.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Koops" wrote in message
...
I have a custom contact item form that I would like to set the
"Assigned To" field on. It's not part of the ContactItem object model
so I think I have to use the PropertyAccessor.

Here is my code:

Set oItem = oApp.CreateItemFromTemplate("C:\Contact.oft", oFolder)

schemaN = "http://schemas.microsoft.com/mapi/proptag/x0e04001f"
Set oPA = oItem.PropertyAccessor
oPA.SetProperty schemaN, "Eric"

I receive the error:
The property "http://schemas.microsoft.com/mapi/proptag/x0e04001f"
cannot be parsed or has an invalid format

Does anyone know if I'm on the right track here or how to do this
another way?
Thanks for your help


Ads