Domino Code Fragment

Code Name*
Create Unique ID in a Document
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.141.244.201
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