We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be1fd1a commit 2fce22dCopy full SHA for 2fce22d
1 file changed
AbortDuplicates.js
@@ -0,0 +1,14 @@
1
+(function executeRule(current, previous /*null when async*/) {
2
+
3
+ // Add your code here
4
5
+ var gr=new GlideRecord('incident');
6
+ gr.addQuery('caller_id',current.caller_id);
7
+ gr.addQuery('short_description','CONTAINS','email');
8
+ gr.query();
9
+ if(gr.next()){
10
+ gs.addErrorMessage("You have already created the incident with the similar short description");
11
+ current.setAbortAction(true);
12
+ }
13
14
+})(current, previous);
0 commit comments