Skip to content
Snippets Groups Projects
Commit a30294d6 authored by v.broens's avatar v.broens
Browse files

[Projekt: xRM-Service][TicketNr.: 1078925][Wissensbeittrag Verantwortlich wird nicht aufgelöst]

parent e2193d74
No related branches found
No related tags found
No related merge requests found
import("Sql_lib");
import("system.neon");
import("system.vars");
import("system.result");
import("system.vars");
import("Contact_lib");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value"))
{
result.string(newSelect(new SqlMaskingUtils().concatWithSeparator(["PERSON.FIRSTNAME","PERSON.LASTNAME"]))
.from("PERSON")
.join("CONTACT", "PERSON.PERSONID = CONTACT.PERSON_ID")
.where("CONTACT.CONTACTID", "$this.value")
.cell()
);
}
\ No newline at end of file
var id = vars.get("$field.AUTHOR_CONTACT_ID");
//show the simpel title since this will be later an employee-entry and therefore no organisation is needed
var title = ContactUtils.getTitleByContactId(id);
result.string(title);
\ No newline at end of file
import("Sql_lib");
import("system.neon");
import("system.vars");
import("system.result");
import("system.vars");
import("Contact_lib");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value"))
{
result.string(newSelect(new SqlMaskingUtils().concatWithSeparator(["PERSON.FIRSTNAME","PERSON.LASTNAME"]))
.from("PERSON")
.join("CONTACT", "PERSON.PERSONID = CONTACT.PERSON_ID")
.where("CONTACT.CONTACTID", "$this.value")
.cell()
);
}
\ No newline at end of file
var id = vars.get("$field.RESPONSIBLE_CONTACT_ID");
//show the simpel title since this will be later an employee-entry and therefore no organisation is needed
var title = ContactUtils.getTitleByContactId(id);
result.string(title);
\ 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