View Single Post
  #7  
Old January 11th 08, 05:17 AM posted to microsoft.public.outlook.program_addins
CK
external usenet poster
 
Posts: 33
Default Create and Get user-defined fields in folder

Sue,

Thanks. The property is created in the folder. How to get the property value?



"Sue Mosher [MVP-Outlook]" wrote:

You don't need to save the item. It is enough that you created it in the folder and added a property to it. Just call Set objContact = Nothing when you're done with it.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"ck" wrote in message news
Hi Ken,
Thanks for the reply. i need to add and get the properties in the folder
object. Actually i do manage to add properties to folder object using this
piece of code:

Set objContact = objNewFolder.Items.Add(olContactItem)
Set OlUserProperty = objContact.UserProperties.Add("GroupID", olNumber)
objContact.Save

BUT by doing this, i will need to add the contact item to the folder. I just
want the properties to be in folder object.

So, how to achieve this using Redemption or CDO 1.21? Any website/sample
that i can go through?


"Ken Slovak - [MVP - Outlook]" wrote:

Do you want the properties on the folder object itself or on items in the
folder? Folder properties would have to be created using something like
Extended MAPI or Redemption or CDO 1.21. For user properties on items just
add the user property to an item and set the add to folder fields argument.

"ck" wrote in message
...
Hi,

I have a COM add-in created using VB6. I need to create user-defined
fields
in one of the contact folder and get the user-defined fields value for
usage
later.

Does anyone know how to create user-defined fields on contact folder and
retrieve the created user-defined fields value?

Thanks!

ck




Ads