Hi,my code snippet:Dim myContact As Contact = New Contact(service)With myContact.CompanyName = mCompany_Name.DisplayName = mName.FileAs = "".FileAsMapping = FileAsMapping.CompanySurnameGivenName.GivenName = mFirst_Name.Subject = mName.Surname = mSurname.Categories.Add("MyNewCategoryName")End WithNo problem with the code, but in Outlook, when I want to search for contactswith the catagory then "MyNewCategoryName" is not listed in theDrop-Downbox. If I enter "MyNewCategoryName" manually the contacts arefound. How can I get "MyNewCategoryName" into the dropdownbox assearchcriteria?ThanksVolkerEX2007/Outlook2007,2010
Stamping a contact item with a category doesn't modify the Master Category List, which is what Outlook uses to display the drop down. If you want your category to appear in the drop down, you must add it to the MCL. I have posted a code sample that shows how to access the MCL on this forum, please look for it.
David Claux | Program Manager - Exchange Web Services
Hi David,thanks for Your answer. I think You mean http://social.technet..microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/e5c5f072-0b5c-49ce-9db7-57f76f5e011e.If Yes, then it means that with EX2007 I cannot modify MCL via EWS. In this case I have to use WebDAV, right? But with EX2010 I have to use EWS instead of WebDAV, because WebDAV isn't supported anymore. So it is necessary to check EX-version and have both ways to access in my app?Volker