Skip to content

Commit 7eea6d4

Browse files
CreateProblem.js
1 parent 3de04cc commit 7eea6d4

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
(function executeRule(current, previous /*null when async*/) {
2+
3+
// Add your code here
4+
if(current.category == 'hardware'){
5+
var gr=new GlideRecord('problem');
6+
gr.initialize();
7+
gr.short_description=current.short_description;
8+
gr.category=current.category;
9+
gr.impact=current.impact;
10+
gr.urgency=current.urgency;
11+
gr.insert();
12+
13+
}
14+
})(current, previous);

Server-Side Components/Business Rules/MyFolder/newfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)