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

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.

--
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


"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