Skip to content

Commit 38fb4ce

Browse files
authored
Create code.js
1 parent 16d17b1 commit 38fb4ce

File tree

1 file changed

+8
-0
lines changed
  • Server-Side Components/Business Rules/my second contribution

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var gr = new GlideRecord('incident');
2+
gr.addQuery('caller_id',current.caller_id);
3+
gr.addQuery('short_desc',current.short_desc);
4+
gr.query();
5+
if(gr.next()){
6+
gs.addErrorMessage('Duplicate inc found for this caller');
7+
current.setAbortAction(true);
8+
}

0 commit comments

Comments
 (0)