Finds a document in a database, given the document universal ID (UNID).
public Document getDocumentByUNID(String unid)
throws NotesException
String unid
The universal ID of a document.
Document
The document whose universal ID matches the parameter.
For an explanation of universal IDs, see getUniversalID in Document. You can obtain the universal ID from getUniversalID or getParentDocumentUNID in Document.
Not matching the UNID to a document in the database throws NotesError.NOTES_ERR_BAD_UNID (4091).
GetDocumentByUNID method in LotusScript NotesDatabase class
@SetDocField function in formula language
OpenDocument @command in formula language
See examples