September 2017
Intermediate to advanced
408 pages
9h 25m
English
Open the entry for the priority field map property again and check the Use source script field. As shown in the following screenshot, the Source script field will now be visible:

Use the following code in the Source script field:
answer = (function transformEntry(source) {
if(source.u_priority.nil())
return "3 - Moderate"; // return the value to be put into the target field
else
return source.u_priority; // return the value to be put into the target field
})(source);
In the preceding code, we have used the source GlideObject object available to us to check the value of the u_priority (priority) field in ...
Read now
Unlock full access