User defined fields , field chooser

J

j

Hi All,


After creating mailItem, fill it with User defined fields
(UserProperties.Add(........) ) and move it to some folder
it's takes a lot of time when i can see these properties in
fieldChooser --> User defined fields (approximately 30 minutes),
however
when i open Field Chooser in INBOX folder these fields appears
momentary.


Any Suggestions???


TNX in advance
 
S

Sue Mosher [MVP-Outlook]

Are you looking under User-defined Fields in Folder? Have you previously defined the fields in that folder?
 
J

j

Thanks for replay,
Are you looking under User-defined Fields in Folder? Yes

Have you previously defined the fields in that folder?
No, these fields are not, after creating mailItem (programatically)
and adding userProperties they appear only under INBOX, and
not under folder to where i moved mailItem.


Ideas ???

Tnx in advance.
 
S

Sue Mosher [MVP-Outlook]

Add the fields to the folder, manually through the folder's Field Chooser.
 
D

Dmitry Streblechenko

User defined properties (or rather their definitions) are added to the
parent folder fields when UserProperties.Add is called. When a message is
copied/moved to another folder, it ts custom properties will not be
automatically added to the target folder fields.
Also keep in mind that Outlook is trying to be "helpful" by creating regular
message (MailItem) in the Drafts folder even when you are trying to
explicitly add it to a particular folder other than Drafts by calling
MAPIFolder.Items.Add
<plug> Redemption allows to explicitly manipulate folder fields definitions
through the RDOFolder2.FolderFields collection
http://www.dimastr.com/redemption/rdo/RDOFolderFields.htm </plug>

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Add the fields to the folder, manually through the folder's Field Chooser.
 
D

Dmitry Streblechenko

Oh, I completely forgot about MAPIFolder.UserDefinedProperties in Outlook
2007!

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

As does Outlook 2007. <g>
 
J

j

Add the fields to the folder, manually through the folder's Field Chooser.


i can't add them manually cause thety not appear i nthe field chooser.
It takes some period of time (20-30 minutes) when they will appear in
field chosser.
Just to note in INBOX's field chooser they appear momentary .


Ideas????
 
S

Sue Mosher [MVP-Outlook]

"add manually" means to click the New button on the Field Chooser. What happens when you do that?
 
J

j

"add manually" means to click the New button on the Field Chooser. What happens when you do that?
It's works, i can manually ad field, however i expirience problem to
see custom fields in field chosoer, ater i added them to mailItem and
moved this
mailItem to folder.

Any Ideas?
 
S

Sue Mosher [MVP-Outlook]

I'm not sure what problem you're describing, but the basic requirement for being able to see fields in a folder view is that those fields be defined in the folder. Adding them to a MailItem does not do that. It only adds the fields to the individiual item and to that item's parent folder. If you move that item to another folder, those fields will not be visible in that folder's views until you define those fields **in that folder.**
 

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