Hi. I have a question about something simple (I think). Is there an easy way to check if a user already exists in Lotus Directory via Lotus Script? I found a function for Formula Language (@NameLookup) which gives me informations about the user but no corrospending part for Lotus Script.Or shall I do lookups on NAB user views?
Best regard
Micha Blankenburg
Subject: Ok got it
I used NotesDirectory and NotesDirectoryNavigator.
Dim mydir As NotesDirectory
Dim mynav As NotesDirectoryNavigator
…
Set mynav = mydir.LookupNames("$Users","CN=" + Firstname + " " + Surname + "/" + MyDN,"LastName", False)
If mynav.FindFirstName() > 0 Then
Print "User exists"
Exit Sub
End If
So I only do a lookup and count the results. Voila.
Best regards
Micha