Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I'm trying to get all my contacts from Exchange using EWS.
I am getting all the data I want (name, email phone number etc) but the notes field is always empty. I
C#
                List<exchangecontact> contacts = new List<exchangecontact>();

                ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);

                service.Credentials = new NetworkCredential("myname", "mypassword", "myserver");
                service.Url = new Uri("https://myserver/ews/exchange.asmx");
ItemView(int.MaxValue));

                foreach (Contact contact in service.FindItems(WellKnownFolderName.Contacts, new ItemView(int.MaxValue)))
                {
                    ExchangeContact thisContact = new ExchangeContact();
                    thisContact.FullName = contact.DisplayName;
                    thisContact.Company = contact.CompanyName;
                    thisContact.JobTitle = contact.JobTitle;
   thisContact.Notes = contact.Notes;

contacts.Add(thisContact);
          }



Can anyone tell me what I am doing wrong or where the notes are stored - I have lost's of them on my Outlook client so cant understand where they are


Cheers


Ants
Posted
Updated 8-Apr-13 12:19pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900