none
Difference between Exchange User and Recipient Objects? RRS feed

  • Question

  • What is the difference between Exchange User and Recipient Objects in Outlook Object Model?

    Shouldn't there be only 1 object instead of these two?


    http://learn2automate.wordpress.com Vijay Gupta

    Thursday, September 12, 2013 2:35 PM

Answers

  • No, they are different. A recipient can be unresolved and thus not linked to any address entry. It can point to a GAL object. It can point to a one-off address entry, etc.

    A recipient is a message child object that may point to an address entry.

    You can retrieve address entry from recipient through the Recipient.AddressEntry property if Recipient is resolved. But there is no back link from address entry to a recipient.


    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 gupta vijay Friday, September 13, 2013 9:21 AM
    Thursday, September 12, 2013 5:29 PM

All replies

  • Recipient object is a row in a message's recipient table. A resolved recipient has an entry id which points to an existing or a one-off address entry.

    An unresolved recipient does not have a PR_ENTRYID property and hence does not point to any address book objects.

    A recipient can have extra message specific properties - e.g. recipient type only makes sense in the context of its parent message as the same address book object can be in the To list of one message and BCC list of another message.


    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 12, 2013 4:40 PM
  • So, basically Exchange User and Recipient Object are the same with some message specific properties as an Exchange User can be recipent object in different messages. Am I correct?

    http://learn2automate.wordpress.com Vijay Gupta

    Thursday, September 12, 2013 5:19 PM
  • No, they are different. A recipient can be unresolved and thus not linked to any address entry. It can point to a GAL object. It can point to a one-off address entry, etc.

    A recipient is a message child object that may point to an address entry.

    You can retrieve address entry from recipient through the Recipient.AddressEntry property if Recipient is resolved. But there is no back link from address entry to a recipient.


    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 gupta vijay Friday, September 13, 2013 9:21 AM
    Thursday, September 12, 2013 5:29 PM
  • Thanks Dmitri for the information!!

    http://learn2automate.wordpress.com Vijay Gupta

    Friday, September 13, 2013 9:21 AM