I’m still having a problem with this formula.When clicking ok, the document does not email and save. Also, do I need the @Prompt([Ok] in a different area for each @If plantlocation = ?
@Command([FileSave]);
subject:=“Complaint/New Document - Test Database”;
body:="A A new document has been entered into the Test Database. It requires your attention. Click on this link to view → ";
@If(plantlocation = “location1”;@MailSend(“diffew”:“erdsaw”:“polpol”;“”;
“complaintby”:“salesengineer”;“”;subject;“”;body;[IncludeDoclink]);
plantlocation = "location2";@MailSend("diffew":"erdsaw":"polpol";"";
“complaintby”:“salesengineer”;“”;subject;“”;body;[IncludeDoclink]);
plantlocation = "location3";@MailSend("diffew":"erdsaw":"polpol";"";
“complaintby”:“salesengineer”;“”;subject;“”;body;[IncludeDoclink]);
plantlocation = "location4";@MailSend("diddid":"asrkop":"tiyerf";"";
“complaintby”:“salesengineer”;“”;subject;“”;body;[IncludeDoclink]);
plantlocation = "location5";@MailSend("didid":"asrkop":"tiyerf";"";
“complaintby”:“salesengineer”;“”;subject;“”;body;[IncludeDoclink]);
plantlocation = "location6";@MailSend("didid":"asrkop:"tiyerf"";"";
“complaintby”:“salesengineer”;“”;subject;“”;body;[IncludeDoclink]);
plantlocation = "location7";@MailSend("didid":"asrkop":"tiyerf";"";
“complaintby”:“salesengineer”;“”;subject;“”;body;[IncludeDoclink]); “”);
list:=@Unique(“email1”:“email2”:"email3"“newdocby”:“salesengineer”);
@Prompt([Ok];@DbTitle;“Thank You! Your new document has been saved and mail notifications have been sent to: " + @Implode(list;”,") )