none
VB.NET - Outlook Add In - How to get "Changed By" field value for a mail item RRS feed

  • Question

  • I am looping thru an outlook folder and trying to get the Sender, Subject line, Body and Changed By fields. I could get all of these except the "Changed By" field using the itemProperties. Is there any way to get the "Changed By" field value for each mail item.

    Thanks in advance!


    Suku

    Thursday, September 5, 2013 2:03 PM

Answers

  • Do you mean the PR_LAST_MODIFIER_NAME MAPI property (take a look at the message with OutlookSpy - click IMessage)?

    You can access that property using MailItem.PropertyAccessor.GetProperty. the DASL name of the property is "http://schemas.microsoft.com/mapi/proptag/0x3FFA001F".


    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 ysuku Thursday, September 5, 2013 2:54 PM
    Thursday, September 5, 2013 2:42 PM

All replies

  • Do you mean the PR_LAST_MODIFIER_NAME MAPI property (take a look at the message with OutlookSpy - click IMessage)?

    You can access that property using MailItem.PropertyAccessor.GetProperty. the DASL name of the property is "http://schemas.microsoft.com/mapi/proptag/0x3FFA001F".


    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 ysuku Thursday, September 5, 2013 2:54 PM
    Thursday, September 5, 2013 2:42 PM
  • Just a word of caution - PR_LAST_MODIFIER_NAME is Exchange specific, PST provider does not expose it.

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

    Thursday, September 5, 2013 3:01 PM