I’m trying to access the Lotus Notes 6.0 Contacts from IE 6.0 using vbscript. following is my code:
Dim objNotesSession
set objNotesSession = CreateObject(“Notes.NotesSession”)
Dim objNotesDB, objNotesView, objNotesDoc, objContact
Dim fname, lname, email
call objNotesSession.initialize(“”)
Set objNotesDB = objNotesSession.GetDatabase(“”, “names.nsf”)
Call objNotesDB.Open
Set objNotesView = objNotesDB.GetView(“Contacts”)
Set objNotesDoc = objNotesView.GetFirstDocument()
If objNotesDoc.HasItem(“FirstName”) Then
fname = objNotesDoc.GetItemValue("FirstName")(0)
end if
If objContact.HasItem(“LastName”) Then
lname = objContact.GetItemValue("LastName")(0)
end if
If objContact.HasItem(“MailAddress”) Then
email = objContact.GetItemValue("MailAddress")(0)
end if
my problem is there are no value return from any of the property. i checked my lotus notes contacts and all values are in place (Document Properties). What am i doing wrong? or what could i do to get first name, last name, email value back?
Subject: RE: GetItemValue doesn’t return any value
Are you sure that you have some contact documents in your local workspace? If you want to try that, try accessing the views: “People” or “$Users” in the names.nsf on a server.