Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






getDocumentByUNID method

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

Defined in

Database

Syntax

public Document getDocumentByUNID(String unid)

throws NotesException

Parameters

String unid

The universal ID of a document.

Return Values

Document

The document whose universal ID matches the parameter.

Usage

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

Language cross-reference

GetDocumentByUNID method in LotusScript NotesDatabase class

@SetDocField function in formula language

OpenDocument @command in formula language

See examples

Examples: getDocumentByUNID method
Related topics
Locating a document by ID in Java classes




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009