troubleshooting Question

Get lotus notes email address list

Avatar of glenn_r
glenn_r asked on
Lotus IBM
7 Comments1 Solution3232 ViewsLast Modified:
I have a project where i need to get a list of email addresses from Lotus Notes. I downloaded the MS VB.NET sample code application from IBM's website ( . Everything works but I'm getting back all the email addresses from names.nsf. The customer says they store addresses from many companies in names.nsf and that the address list I'm looking for is in a Directory. Not sure if Directory is the correct terminology but from what I understand they store each companies addresses in a separate directory.

With the code below how can I
A) limit the address list to a specifed directory or
B) cycle through the addresses to produce the desired result set.

Any advice would be greatly appriciated.



Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs)Handles MyBase.Load
  Dim s As New NotesSession
  Dim db As NotesDatabase
  Dim vw As NotesView
  Dim doc As NotesDocument
    db = s.GetDatabase("ServerName//Domain", "names.nsf", False)
  If Not (db Is Nothing) Then
    vw = db.GetView("_People")
    doc = vw.GetFirstDocument()
    While Not (doc Is Nothing)
      cboNames.Items.Add(doc.GetFirstItem("FirstName").Text + " " +
        doc = vw.GetNextDocument(doc)
    End While
  End If
End Sub
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros