PDA

View Full Version : Getting ContactItem from Recipient



MWE
10-24-2014, 09:42 AM
I am running ol2003 with the newest version of Redemption.

A DistListItem has a number of Members, each is a Recipient. The GetMember method allows you to directly fetch a Recipient. Given a Recipient, how does one determine if:

the recipient is another dist list
the recipient is a "regular" contact
the recipient is just an email address


Given that the recipient is either another distlist or a regular contact, how does one directly fetch the corresponding ContactItem?

Thanks

UPDATE: I found an answer to the second part of this thread, i.e., how to directly fetch the appropriate ContactItem. The rdoRecipient item has a method, RDORecipient.AddressEntry.GetContact() which seems to do the job.