Skip to content

Commit bc7be8f

Browse files
updates the Description &b added telephone icon using the script. (#2463)
* code_snippet.js * README.md * Add files via upload
1 parent 9833fca commit bc7be8f

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
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.
2+
This includes screenshot as well where it shows telephone icon concatenated with specific meaningful string.
75.4 KB
Loading
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)