EWS: Create message with PrivateDL recipient

Simon Hain 96 Reputation points
2021-06-23T07:53:00.88+00:00

Hello,
i noticed that Outlook allows sending mails to local contact groups (private distribution lists, PrivateDL).
When saving such a message as draft, it shows the recipient like this:

 <t:ToRecipients>
    <t:Mailbox>
       <t:Name>Test Distribution List</t:Name>
       <t:RoutingType>MAPIPDL</t:RoutingType>
       <t:MailboxType>PrivateDL</t:MailboxType>
       <t:ItemId Id="AAMkAGM2NTEyNGNlLTQ1YmEtNDc3MS1hYTcwLTU1OTUyNmYwMjc0OABGAAAAAABffnvz5cFJRKGuteRiOEEEBwDOHTPVqtslRIYX+WVhzyFIAAAAAAEOAADOHTPVqtslRIYX+WVhzyFIAADrHwPbAAA=" ChangeKey="EgAAAA=="/>
    </t:Mailbox>
 </t:ToRecipients>

However, when i try to use this mailbox as a recipient in CreateItem, the server replies with ErrorItemNotFound: The specified object was not found in the store., The store ID provided isn't an ID of an item.

Is it not possible to create a message with a PrivateDL as recipient using EWS?

Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
526 questions
0 comments No comments
{count} votes