![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi!
I am coding a solution that has a function to sync it's database with Outlook. I use a User-Defined Field to keep track of "my" items and it works great. BUT - I can not find a way to add the user-defined field to the folder programmatically. If an app is to be distributet widely I can't ask my users to do this by hand. I have noticed that som apps (like Skype) has added user-defined fields automatically, so there has to be a way - do you know or could you point me in the right direction? I'm coding in C# and Visual Studio 2005. Regards Mikael Sweden (I was unsure if this should be published in Interop or Program_AddIns) |
Ads |
#2
|
|||
|
|||
![]()
Answered in Interop, although this is a better group for a question like
that. -- 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 "Mikael" wrote in message ... Hi! I am coding a solution that has a function to sync it's database with Outlook. I use a User-Defined Field to keep track of "my" items and it works great. BUT - I can not find a way to add the user-defined field to the folder programmatically. If an app is to be distributet widely I can't ask my users to do this by hand. I have noticed that som apps (like Skype) has added user-defined fields automatically, so there has to be a way - do you know or could you point me in the right direction? I'm coding in C# and Visual Studio 2005. Regards Mikael Sweden (I was unsure if this should be published in Interop or Program_AddIns) |
#3
|
|||
|
|||
![]()
If u want add fields to folder, u should create mailItem fill it with
properties and move to folder, that's all. |
#4
|
|||
|
|||
![]()
If u want add fields to folder, u should create mailItem fill it with
properties and move to folder, that's all. That would be totally ineffective. Moving an item to a folder has no effect whatsoever on the fields defined in that folder. To define a field in a folder in versions before Outlook 2007, use the MAPIFolder.Items.Add method to create a new item in the folder (a post item if it's a mail/post folder). Then use the item's UserProperties.Add method to create the property on the item, setting the third parameter to True. Finally, delete this new item, which is no longer needed. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Filtering On User Defined Field | Alan | Outlook - General Queries | 1 | January 18th 07 09:17 PM |
How to create a user-defined field in vsto | [email protected] | Outlook - Using Forms | 4 | September 18th 06 03:55 PM |
User Defined Field Initial Value | Matt | Outlook and VBA | 1 | May 6th 06 06:54 AM |
How do I rename user defined field names? | Sue Mosher [MVP-Outlook] | Outlook - Using Contacts | 1 | January 19th 06 03:13 AM |
Referencing a User-Defined Field | Chaplain Doug | Outlook - Using Forms | 1 | January 13th 06 03:54 PM |