Skip to content

Commit 50d6c8d

Browse files
code_snippet.js
1 parent 9833fca commit 50d6c8d

File tree

1 file changed

+15
-0
lines changed
  • Server-Side Components/Business Rules/Update Incident Description on Insert with Telephone Icon Concatenated

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Update description with telephone icon with specific meaningful description concatenated
2+
(function executeRule(current, previous /*null when async*/) {
3+
4+
try {
5+
//code to execute goes here
6+
var myTelephone = "\u260E"; // Create the telephone icon
7+
if (current.description == "") {
8+
current.setValue('description', "You really should " + myTelephone + " home more often."); // Update the description in concatenation with telephone icon script
9+
}
10+
} catch (err) {
11+
//code to handle error goes here
12+
gs.error("A runtime error has occurred: " + err);
13+
}
14+
15+
})(current, previous);

0 commit comments

Comments
 (0)