Thanks to a helpful person on this list I have the name and email address from the public folders. That information is in a GroupMemeber object. What I can not get working now is how to take that information and query the public folder for all the information for that contact. From the Group Member you can get the persons name and email address but I also need the title, company, address and phone. I've tried to modify the code to query the info I need but have not had success. I'm using EWS 2.0. Can someone point me in the right direction please.
thanks
**********
I'm not sure where i'm really suppose to search. Do you search Contact.Schema.EmailAddress1 or does it have to be something from the public folders.. it couldn't be FolderSchema but I didn't see anything else I should be searching on.. anyway..
**********
making some progress. I'm now able to get to the contact information by passing in the email address..
Here is the code in case it can help someone else out
Dim sf As SearchFilter = New SearchFilter.IsEqualTo(FolderSchema.DisplayName, "Office Contacts") Dim rrRes As FindFoldersResults = service.FindFolders(WellKnownFolderName.PublicFoldersRoot, sf, New FolderView(1)) Dim OfficeContacts As Folder = rrRes.Folders(0) 'Find the Distribution List Dim dlSearch As SearchFilter = New SearchFilter.IsEqualTo(ContactSchema.EmailAddress1, "thename@outlook.com") Dim ivItemView As New ItemView(1) Dim fiResults As FindItemsResults(Of Item) = OfficeContacts.FindItems(dlSearch, ivItemView) If fiResults.Items.Count = 1 Then Dim con As Contact = fiResults.Items(0) 'Enumeate Members Dim cg As ContactGroup = DirectCast(fiResults.Items(0), ContactGroup) end if