please share c# code to get contact id from office 365 contacts using ews client.
Thanks
please share c# code to get contact id from office 365 contacts using ews client.
Thanks
You may please use following sample code to get the list of contact Ids and share the feedback.
IEWSClient client = EWSClient.GetEWSClient("https://outlook.office365.com/ews/exchange.asmx", "testUser", "pwd", "domain");
Contact[] contacts = client.GetContacts("Contacts");
foreach (Contact cont in contacts)
{
Console.WriteLine("EWSId = " + cont.Id.EWSId);
Console.WriteLine("DisplayName = " + cont.DisplayName);
}