what do you have in Items? How do you treat the returned value(s) from Set notesDirectoryNavigator? The more info you give, the more likely you’ll get some help.
Set dirServer = session.GetDirectory(“Testserver/Testunternehmen”)
arstrNames(0) = “Schmitz”
arstrNames(1) = “Meier”
Set dirnavServer = dirServer.LookupNames(“($Users)”, arstrNames, “CompanyName”, True)
lngMatches = dirnavServer.CurrentMatches
Result: lngMatches = 1.
Both names are available in this view (“($Users)”). It doesn’t matter, whether the first name is “Schmitz” and second is “Meier” or if the first is “Meier” and the second is “Schmitz”.
Always the same result: only one match is returned.