Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / November 2006

Tip: Looking for answers? Try searching our database.

UserProperties

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frédérick Jacquet - 03 Nov 2006 15:36 GMT
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.
Ken Slovak - [MVP - Outlook] - 03 Nov 2006 19:11 GMT
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.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi,
>
[quoted text clipped - 7 lines]
> thanks,
> Fred.
Frédérick Jacquet - 04 Nov 2006 12:30 GMT
Thank you. it's work great.... i forgot the "True" value.

> Set oProp = olApp.UserProperties.Add("prop_name", olText, True)
>
[quoted text clipped - 23 lines]
>> thanks,
>> Fred.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.