LOTUSSCRIPT/COM/OLE CLASSES


GetDocumentByUNID method
Example

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

Defined in

NotesDatabase

Syntax

Set notesDocument = notesDatabase.GetDocumentByUNID( unid$ )

Parameters

unid$


Return value

notesDocument


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).

Language cross-reference

getDocumentByUNID method in Java Database class

@SetDocField function in formula language

@Command([OpenDocument]) function in formula language

Example
See Also