Automating Custom Field colums in inbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I am developing an add-in that integrates to a large-scale
document-management system. The user can save emails from outlook in the DMS,
and this is marked in outlook as a custom property (or field) on the mail
item. There are two fields a boolean showing that the email has been saved
and an id referring to the document id in the DMS.

The users set up their inboxes to show these fields in two columns.

Now we are deploying this integration in an installation for some 6000+
users, and whish to automate the inbox folder setup so the columns are
automatically added to the inbox (and optionally sent-items) folders. Is that
possible? And how?

Best Regards

Mads S. Larsen
 
Yes, that's possible. You'd first need to create a PostItem in the folder and add to its UserProperties collection to set the field definitions in the folder. (You can then delete that item.)

Then you can use the View.XML property to handle the view columns. MSDN has articles at http://msdn.microsoft.com/library/en-us/dnout2k2/html/ODC_CustomViews.aspand http://msdn.microsoft.com/library/en-us/dnout2k2/html/ODC_XMLViewDef.asp See http://www.outlookcode.com/threads.aspx?forumid=4&messageid=19 for additional sample code.


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top