Skip to content

Commit b8c18e8

Browse files
Create CreateProblem.js
1 parent 8128231 commit b8c18e8

File tree

1 file changed

+15
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)