Skip to content
Snippets Groups Projects
Commit c2ddbb04 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1060441][E-Mail schreiben action Email nicht vorbelegt]

parent d98095ea
No related branches found
No related tags found
No related merge requests found
......@@ -3,14 +3,14 @@ import("system.result");
import("system.neon");
import("system.vars");
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null)
if (vars.get("$this.value") == null)
{
if (vars.exists("$param.Recipient_param") && vars.get("$param.Recipient_param"))
result.string(vars.get("$param.Recipient_param"));
else if (vars.exists("$param.ContactId_param") && vars.get("$param.ContactId_param"))
result.string(CommUtil.getStandardMail(vars.get("$param.ContactId_param")));
}
else if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$field.RECIPIENT").includes("@"))
else if (!vars.get("$field.RECIPIENT").includes("@"))
result.string(newSelect("ADDR")
.from("COMMUNICATION")
.where("COMMUNICATION.COMMUNICATIONID", vars.get("$this.value")).cell());
\ No newline at end of file
import("system.neon");
import("system.vars");
import("system.result");
import("system.util");
import("system.vars");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null)
if(vars.get("$this.value") == null)
result.string(util.getNewUUID());
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment