UserProperties

  • Thread starter Frédérick Jacquet
  • Start date
F

Frédérick Jacquet

Hi,

I need to write a custom sync engine between Outlook 2003 SP2 and our CRM
application. I want to use contact / task UserProperties for storing some
data and need to retreive data filtering on UserProperties
1) How can i check that my userproperties are created in the folder ?
2) If my userProperties are not created, how can i create them
programaticaly ?

thanks,
Fred.
 
K

Ken Slovak - [MVP - Outlook]

Set oProp = olApp.UserProperties.Add("prop_name", olText, True)

Set the type and names to what you want. Set True to add the property to the
folder fields.

If you add a user property to a folder it creates a hidden message in that
folder with a MessageClass of IPC.MS.REN.USERFIELDS. In that hidden message
is a MAPI property PR_USERFIELDS, a PT_BINARY property with a property tag
of 0x36E30102. That property has the name or names of all user properties
added to the fields of that folder.

You will need to use an API such as CDO 1.21 or Extended MAPI or Redemption
(www.dimastr.com/redemption), or Outlook 2007, to be able to access the
hidden messages collection of the folder and that MAPI property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top