How to show data in a custom field in a folder

M

MeAgin

Hi all,



I want to show some custom fields on a mail folder. How to achieve this?



I add a custom property to the mail item when moving to the specific folder
in my VBA code as,



Set NewField = oNewMail.UserProperties.Add("Type", olText, True)

NewField = loXmlDom.DocumentElement.SelectSingleNode("//type").Text



Also I have added a new column as type in the folder but it is blank for all
mails.

Please advice.



Thanking in advance.

Nadee
 
K

Ken Slovak - [MVP - Outlook]

Is that added field actually in the item? Does it contain content? Are you
saving the item after adding the new UserProperty?

If you use the Field Chooser to custom the columns in a table view does that
property show up as a field in the folder?

You can examine the items by opening them and selecting Tools, Forms, Design
this form. Go to the All Fields tab and see what's listed for fields in the
item and fields in the 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