none
0x3A4F001F (nickname) in contact card does not work with propertyaccessor RRS feed

  • Question

  • Outlook 2007 add-in

    nickname field has a value (checked with Outlook spy)

    Calling this method from "ProcessBeforeCheckNames" event.

    recipient.AddressEntry.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3A4F001F")

    (I know multi dot is not efficient.. just example)

    In debug mode I can see that addressentry is set to the correct contact in the contacts folder.

    Is there an alternative method to access nickname?

    thanks,
    john


    Thanks, John

    Wednesday, July 17, 2013 10:14 AM

Answers

  • That means you are looking at the contact. Does Recipient.AddressEntry.GetContact return the ContactItem objct?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    • Marked as answer by John. _ Wednesday, July 17, 2013 2:02 PM
    Wednesday, July 17, 2013 1:58 PM

All replies

  • Where in OutlookSpy do you see that property? Is it in the IMessage | GetRecipientTable tab? Or when you double click on that recipient and look at the IMailUser object?

    In the former case, you need to read the property from the recipient, not address entry:

    recipient.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3A4F001F")


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, July 17, 2013 1:18 PM
  • thanks for your reply.

    I tried it just now to access it from the recipient object but that does not work either. (object does not support property is the error)

    In Outlook spy I see the property when I double click the email address of the recipient which opens the contact card. From there I click on Imessage in SPY and it is listed in the "getpropes" table.

    Other properties like PR_DEPARTMENT_NAME_W (0x3A18001F) are listed there as well and I can access department from the addressentry object with propertyaccessor.getproperty


    Thanks, John

    Wednesday, July 17, 2013 1:53 PM
  • That means you are looking at the contact. Does Recipient.AddressEntry.GetContact return the ContactItem objct?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    • Marked as answer by John. _ Wednesday, July 17, 2013 2:02 PM
    Wednesday, July 17, 2013 1:58 PM
  • Indeed! and there I can access the property fine.

    thanks!



    Thanks, John

    Wednesday, July 17, 2013 2:02 PM