diff --git a/Server-Side Components/Business Rules/Update Incident Description on Insert with Telephone Icon Concatenated/README.md b/Server-Side Components/Business Rules/Update Incident Description on Insert with Telephone Icon Concatenated/README.md new file mode 100644 index 0000000000..0716005b78 --- /dev/null +++ b/Server-Side Components/Business Rules/Update Incident Description on Insert with Telephone Icon Concatenated/README.md @@ -0,0 +1,2 @@ +This script basically updates the Description in Incident table which includes some text but added telephone icon using the script, so that it looks fascinating. +This includes screenshot as well where it shows telephone icon concatenated with specific meaningful string. diff --git a/Server-Side Components/Business Rules/Update Incident Description on Insert with Telephone Icon Concatenated/Screenshot.png b/Server-Side Components/Business Rules/Update Incident Description on Insert with Telephone Icon Concatenated/Screenshot.png new file mode 100644 index 0000000000..1a033fd6af Binary files /dev/null and b/Server-Side Components/Business Rules/Update Incident Description on Insert with Telephone Icon Concatenated/Screenshot.png differ diff --git a/Server-Side Components/Business Rules/Update Incident Description on Insert with Telephone Icon Concatenated/code_snippet.js b/Server-Side Components/Business Rules/Update Incident Description on Insert with Telephone Icon Concatenated/code_snippet.js new file mode 100644 index 0000000000..7a13ace7fc --- /dev/null +++ b/Server-Side Components/Business Rules/Update Incident Description on Insert with Telephone Icon Concatenated/code_snippet.js @@ -0,0 +1,15 @@ +// Update description with telephone icon with specific meaningful description concatenated +(function executeRule(current, previous /*null when async*/) { + + try { + //code to execute goes here + var myTelephone = "\u260E"; // Create the telephone icon + if (current.description == "") { + current.setValue('description', "You really should " + myTelephone + " home more often."); // Update the description in concatenation with telephone icon script + } + } catch (err) { + //code to handle error goes here + gs.error("A runtime error has occurred: " + err); + } + +})(current, previous);