Skip to content

Commit b70dd2d

Browse files
Create ChildIncidentds.js
1 parent be1fd1a commit b70dd2d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(function executeRule(current, previous /*null when async*/) {
2+
3+
// Add your code here
4+
if(!current.isNewRecord()){
5+
var gr=new GlideRecord('incident');
6+
gr.addQuery('parent_incident',current.sys_id);
7+
gr.query();
8+
var c=gr.getRowCount();
9+
10+
g_scratchpad.num=c;
11+
}
12+
13+
})(current, previous);

0 commit comments

Comments
 (0)