If you are using Outlook 2007 or higher, you can use MailItem.PropertyAccessor to access any MAPI property.
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Wolfixx" <wolfixx@gmx.at> wrote in message news:%23aHYSF5mKHA.4628@TK2MSFTNGP06.phx.gbl...
> Thanks Sue > > I sorted it out. It seems that there are several custom Property which can > only be accessed by the CDO objects (Mapi.Message) > > "Sue Mosher [MVP]" <suemvp@gmail.com> wrote in message > news:e#brk0RlKHA.4872@TK2MSFTNGP05.phx.gbl...
>> Please show the relevant code snippet and state your Outlook version. >> >> -- >> Sue Mosher, Outlook MVP >> Author of Microsoft Outlook 2007 Programming: >> Jumpstart for Power Users and Administrators >> http://www.outlookcode.com/article.aspx?id=54 >> >> >> "Wolfixx" <wolfixx@gmx.at> wrote in message >> news:ubJP8INlKHA.6096@TK2MSFTNGP02.phx.gbl...
>>>I am getting a System.NullReferenceException >>>
>>>> What happens when you try to return that property by name through >>>> ItemProperties or UserProperties? >>>> >>>> "Wolfixx" <wolfixx@gmx.at> wrote in message >>>> news:%23EV$rWLlKHA.4872@TK2MSFTNGP05.phx.gbl...
>>>>> Hi Guys, >>>>> >>>>> I have a problem getting the the value of a ItemProperty which exists >>>>> (you can see it using OutlookSpy or displaying the column in the mail >>>>> grid (Customize current view / Fields / New Field) but I cannot get it >>>>> when iterating through the ItemProperties or UserProperties collection >>>>> on the Outlook.MailItem object. >>>>> >>>>> ALTHOUGH I can overwrite the value by creating a a new property with >>>>> the same name using VBA (Outlook.MailItem.ItemProperties.Add) on that >>>>> emails. >>>>> The problem is that I need to read that value. >>>>> >>>>> Does Anyone have a clue? >>>>> >>>>> Thanks in advance for any help >>>>> Wolfgang
>>>> >>>>
>> >>
13 Jan 2010Invisible Item Properties on MailItems?.Wolfixx
13 Jan 2010\ Re: Invisible Item Properties on MailItems?.Sue Mosher [MVP]
14 Jan 2010   \ Re: Invisible Item Properties on MailItems?.Wolfixx
14 Jan 2010      \ Re: Invisible Item Properties on MailItems?.Sue Mosher [MVP]
22 Jan 2010         \ Re: Invisible Item Properties on MailItems?.Wolfixx
03 Feb 2010            \ Re: Invisible Item Properties on MailItems?.Dmitry Streblechenko
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)