Get all members of a public distribution list (pdl) in EWS API 1.1 version 2010_SP1 RRS feed

  • Question

  • Hi, I am currently grabbing all members of a pdl through my contacts like this:


    FindItemsResults<Item> pdl_contacts = service.FindItems(new FolderId(WellKnownFolderName.Contacts), new SearchFilter.ContainsSubstring(EmailMessageSchema.Subject, pdl_name, ContainmentMode.Substring, ComparisonMode.IgnoreCase), new ItemView(1));
    ContactGroup contactGroup = new ContactGroup(service);
    foreach (Item tempcontact in pdl_contacts)
          if (tempcontact.Subject == pdl)
                contactGroup = tempcontact as ContactGroup;

    Is there a way to get all contacts in a pdl without using my contacts? I'm hoping to get this information anonymously (without providing my personal login credentials in ExchangeService.Credentials).


    Wednesday, October 26, 2011 7:53 PM