Domino Code Fragment

Code Name*
Create Unique ID in a Document
Date*
06/28/2025
Source (or email address if you prefer)*
[email protected]
IP address:.172.71.1.159
Description*
Creates a Unique ID for each document you compose.
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
1. Create a new Text field in your form. The field needs to be a Computed field
2. Select Formula in the Designer's Pane
3. Copy the formula below into the design formula.

ENVIRONMENT UniqueID :=
@Text(@TextToNumber(@Environment("UniqueID")) + 1);
@Implode(@Left(@Explode(@UserName; " "); 1); "") + UniqueID