Need help to Read Lotus Notes Mail and get the List of mail in Inbox and All Documents through QTP
i need code to read / Search Lotus notes mail from Inbox and All Documents .
i have tried below code , but always getting errror at Line 6 highlighted in Blue color.
Also can anybody give me What view.GetFirstDocument() function return exactly , as everywhere it is given to retrive recent mail but tried wth lots of ways but not getting annything.
Set session = CreateObject("Notes.NotesSession")
Set db = session.CurrentDatabase 'session.GetDatabase("ddd", "mail\sss.nsf")
Set view = db.GetView("$Inbox")
Msgbox "View name: " & view.Name
Set doc1 = view.GetFirstDocument()
Set doc2 = doc1.Document
subj = doc2.GetFirstItem("Subject").Values