BodyText := @NewLine +
"ACT Information" + @NewLine +
"=============" + @NewLine + @NewLine +
"Zone: " + Zone + @NewLine +
"Log Number: " + LogNumber + @NewLine +
"Reported By: " + ReportedBy + @NewLine +
"Reported Date :" + @Text(ReportedDate) + @NewLine + @NewLine;
@If(@IsNewDoc;
@Do(
@MailSend(Notification;"";"";"New ACT for Zone " + Zone + " Risk Category " + "[" + Risk1+ "]";"A new ACT has been raised in your Zone, Please click on the doc link below to view:";BodyText;[IncludeDoclink]);
@SetField("MailAssign";"Y")
);"");
@If(SignedOff = "Yes" & SignedOff1!= "Yes" & Risk1 = "Stop" | "Alert";@MailSend(@Unique(@Trim("James Smith/GB/HO/DCT"));"";"";"A ACT Report Requires Signing Off";"The corrective actions for the ACT created are now completed, please review and sign off the report. Follow the doc link below to see the document." + @NewLine;BodyText;[IncludeDoclink]);"")
|