We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16d17b1 commit 38fb4ceCopy full SHA for 38fb4ce
Server-Side Components/Business Rules/my second contribution/code.js
@@ -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