The universal ID, which uniquely identifies a document across all replicas of a database. In text format, the universal ID is a 32-character combination of hexadecimal digits (0-9, A-F).
The universal ID is also known as the unique ID or UNID.
@DocumentUniqueID
If two documents in replica databases share the same universal ID, the documents are replicas.
This function works in any formula that runs in the context of one or more documents.
To display the UNID, you must convert the result of this function to text, that is, you must specify @Text(@DocumentUniqueID).
The unique ID is one part of a document's entire ID number. To see a document ID, click the Document IDs tab of the document properties box. The UNID is on the first two lines following OF (first line) and ON (second line) in two 8-character segments.
Once created, a document's UNID never changes. If a document is copied and pasted, the pasted document gets a new UNID.
Every response document has a special field called $Ref that contains the UNID of the parent document.
In a field formula, @DocumentUniqueID (not converted to text) is a link to the document.
@Text(@DocumentUniqueID)
@DocumentUniqueID
@InheritedDocumentUniqueID
Project
FIELD Project := @GetDocField($Ref; "Project");
@All
SELECT Form = "Main Topic"
The first column is sorted and its formula is:
@Text(@DocumentUniqueID)
Create an agent that runs on a schedule, selects all documents in the database that use the form "Response," and runs the following formula:
FIELD Project := @DbLookup("":""; ""; "By doc ID"; @Text($Ref); "Project");
@All
Each time the agent runs, it performs a lookup in the "By doc ID" view to find the "Main Topic" that is the parent of the current "Response" (that is, the document with a @DocumentUniqueID that matches the current document's $Ref field). It then copies the contents of the Project field from the parent to the child.
UniversalID property of LotusScript® NotesDocument class
UniversalID property of Java™ Document class
DocUNID property of LotusScript NotesRichTextDocLink class