Domino Code Fragment

Code Name*
Send Notification With DocLink Back To Document
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.16.66.206
Description*
This formula sends a notification to another user with a doclink that takes the user back to the original document. This is an ideal way to centralize data in a database while notifying users by mail that there is work waiting for them in another database.
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
This formula calls for a SendTo, Subject, and Remark Field and Status in the form design.
Files/Graphics attachments (if applicable): Code:
REM "Send mail to a Manager to let them know of an expense report that needs to be approved.";
SendTo := ManagerName;
Subject := "Expense report from " + SubmittedFrom + "submitted on " + DateSubmitted;
Remark := "You have an expense report awaiting your approval in the Expense Report database':
@If(Status = "Submit"; @MailSend(SendTo; "'; ""; Subject ; Remark; ""; [IncludeDoclink]; ""); @Prompt([OK]; "This expense report is not ready to be approved at this time.")