PDA

View Full Version : Property (field) Friendly-Name vs Code-Name?



johnywhy
06-06-2012, 02:35 PM
hello, when accessing contact item properties with

.ItemProperties

and then retrieve a property name with

.ItemProperty.Name

i get code-names, like

Business2TelephoneNumber

How can i write to a property if i only know it's display name?

How can i read a property if i only know it's display name?

I'm guessing the display-name is determined by the form. If so, how can I retrieve the display name from the form if i know the code-name?

thanks

JP2112
06-07-2012, 11:13 AM
How can i write to a property if i only know it's display name?

How can i read a property if i only know it's display name?

You'll just have to keep a copy of the Outlook Object Model (http://msdn.microsoft.com/en-us/library/aa221870(v=office.11).aspx) handy. Use a function that lists the value of every possible property for the item you are inspecting. When you see the value that matches the display name's value, you know you are looking at the corresponding property.


how can I retrieve the display name from the form if i know the code-name?

I don't believe this is possible.