MapiItemX.Recipients

Hi,
If I’m not mistaken, I’m suspect that MapiItem.Recipients simply does not work.

See this Msg which is journal:
My Journal.zip (163.3 KB)
Untitled.png (112.7 KB)

Can’t get the contacts show in the screen shot, not only for this Journal, but for any Mapi Msg :slight_smile:

var msg = MapiMessage.Load("My Journal.msg");
var contacts = msg.GetProperty(KnownPropertyList.Contacts).MVEntries;

foreach(string contact in contacts)
{
    //do something
}
1 Like

Hello and thanks for your help.

Do you confirm to get the contacts mentioned in my snapshot, there’s no property/method in the API and I have to use .GetProperty ?
No problem, just wanna make sure it’s different as existing ones :slight_smile:

And sorry that I didn’t provide my code:

For Each MapiRecipient In MapiJournal.Recipients
For Each MapiRecipient In MapiNote.Recipients

And all other MapiItems, have MapiItem.Recipients

I could not find anyway to test if this .Recipients collection works or not.
Do you have any idea where .Recipients map to in Outlook?
And is .Recipients collection available for all MapiItem types?

And sorry, Contacts.MVEntries will only provide the contact Display Name, no Email Address/etc :frowning:

A Journal object MUST NOT have recipients

Please refer to this

PidLidContactLinkEntry seems to contain Address Book EntryIDs. But I don’t know how to extract them.