GetDocumentByID (NotesDatabase - LotusScript®)

Finds a document in a database, given the document's note ID.

Defined in

NotesDatabase

Syntax

Set notesDocument = notesDatabase .GetDocumentByID( noteID$ )

Parameters

noteID$

String. The note ID of a document. You can obtain this from the NoteID property of a document.
Important: The note ID is 8-character, do not use UNID (32-character length here), otherwise, the method will try to search using last 8 character of UNID and return wrong document. Use GetDocumentByUNID if you find document using UNID.

Return value

notesDocument

NotesDocument. The document with the specified note ID. Returns Nothing if a match is not found.

Usage

For an explanation of NoteIDs, see the NoteID property in NotesDocument.

Example