GetFirstDocument (NotesView - LotusScript®)

Returns the first document in a view. This is the same document you see when you scroll to the beginning of the view in the Notes® user interface.

Defined in

NotesView

Syntax

Set notesDocument = notesView .GetFirstDocument

Return value

notesDocument

A NotesDocument. The first document in the view.

Usage

GetFirstDocument is useful when:

  • You want to access every document in the view. Use GetNextDocument to find documents after the first one.
  • The first column in the view is sorted by date, and you want to access either the oldest or newest document in the view.

Example