domino.createMail(name: string | nil) --mail Open a {{mail}} and create a mail object with the provided name, or create a new one when providing no name.
domino.getCurrentDatabase() --database The {{database}} that the Workflow was called in. The returned {{database}} is already open so calling this function is (almost) free. It is also persisted across scripts and will never be closed or reopened in between.
domino.getDatabase(path: string, user: user) --database | nil Open a {{database}} by path. The returned object should be checked against nil to prevent errors down the line.
The second parameter can be used to open the database with the permissions of a {{user}}. When the provided {{user}} has an authentication state of "Unauthenticated" the database will never open and will always throw an access error even if they have access to open the database. See {{user/user:setAuthentication}} for more information.
domino.getUser(name: string) --any | nil Since v254 Get a {{user}} by their full-name.
domino.workflowNote --note | nil The current Workflow {{note}} which can be used to write or read to.