I created the following simple LotusScript agent to test this. And in my testing, every time I ran the agent, the message box displayed the information from the selected documents in the order they appeared in the view? I have been unable to reproduce this problem.
' Last mods 020518. 103401 - firstname.lastname@example.org -www.libertastechnologies.com Dim nsCurrent As New NotesSession Dim ndbCurrent As NotesDatabase Dim ndcSelected As NotesDocumentCollection Dim ndocSelected As NotesDocument Set ndbCurrent=nsCurrent.CurrentDatabase Set ndcSelected=ndbCurrent.UnprocessedDocuments Set ndocSelected=ndcSelected.getFirstDocument Do While Not ndocSelected Is Nothing Msgbox ndocSelected.tLink(0) Set ndocSelected=ndcSelected.getNextDocument(ndocSelected) Loop
Dig deeper on LotusScript
Related Q&A from Dave Hatter
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.