0
votes

I need to get all contacts from Microsoft Exchange.. Those contacts are also saved in Office365 -> People -> Directory. Many thx for help!

1
Stack overflow doesn't solve your problems for you. People are happy to help but you need to put in a good faith effort to get started.gnicholas

1 Answers

0
votes

Use the ResolveName("SMTP:") API to retrieve all the contacts from Global Address List, the limitation of such is it only returns the top 100 from the query operation.

Your Managed EWS code works similar to

        var nameResolutionCollection = service.ResolveName("SMTP:");
        foreach(var item in nameResolutionCollection)
        {
            // your code in here
        }

Find out more information from https://msdn.microsoft.com/en-us/library/office/aa563518%28v=exchg.150%29.aspx.