Finds a document in a database, given the document universal ID (UNID).
Set notesDocument = notesDatabase .GetDocumentByUNID( unid$ )
unid$
String. The universal ID of a document.
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).
getDocumentByUNID method in Java™ Database class
@SetDocField function in formula language
@Command([OpenDocument]) function in formula language