With this code I get the extended properties for contacts with a specific display name:
foreach(Contact c in contacts)
{
// some code...
view.PropertySet = new PropertySet(BasePropertySet.IdOnly, properties);
filter = new SearchFilter.IsEqualTo(FolderSchema.DisplayName, c.DisplayName);
items = service.FindItems(folderId, filter, view);
}
I want to filter not by the DisplayName but by the Contact.Id, but i can’t find a way to do that.
That’s what I have done in the end, i did not find a better solution.
I get all contacts with the same name and iterate through them to find the correct contact.