GetDocumentByUNID (NotesDatabase - LotusScript®)

Finds a document in a database, given the document universal ID (UNID).

Defined in

NotesDatabase

Syntax

Set notesDocument = notesDatabase .GetDocumentByUNID( unid$ )

Parameters

unid$

String. The universal ID of a document.

Return value

notesDocument

NotesDocument. The document with the specified universal ID.

Usage

For an explanation of universal IDs, see the UniversalID property in NotesDocument. You can obtain the universal ID from the UniversalID property or ParentDocumentUNID property in NotesDocument.

Not matching the UNID to a document in the database raises lsERR_NOTES_BAD_UNID (4091).

Example