- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 01:14 AM
When user tries to enter short description on incident form,if short description is same as recently entered short description,then user must not be able to submit incident.How can we achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 01:40 AM
Hi @Shubham_verma
Try this
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 02:02 AM
@Shubham_verma
The script will take the SD value that you're entering, with all the incidents present in the system, if the SD matches with any other incident's SD, then it will not allow you to save the incident, however, if no SD matches then it will allow you to save the incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 02:52 AM
@Shubham_verma , when you update XYZ to XYZ , there wont be any difference right Shubam
Technically when you update from XYZ to YZA and then when you update YZA to XYZ in next update it throughs error
Regards,
Shyamkumar
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 01:18 AM
1. Design BR on Before Insert on Incident Table and use this Below Script
function onBefore(current, previous) {
var gr = new GlideRecord('incident');
gr.addQuery('short_description', current.short_description);
gr.query();
while(gr.next())
gs.addInfoMessage('Incident exists With same short description please select different SD'); //change as you need
current.setAbortAction(true); //aborts the record
}
}
Regards,
Shyamkumar
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 01:29 AM
I opened a existing incident,tried to update short description with same name as well as different name .In both cases incident is getting updated.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 01:35 AM
@shyamkumar VK :- You need to select update checkbox in your BR so that it will work for update as well if you want to restrict for update.
Kindly mark helpful/accepted if it helps you.
Regards,
Priyanka Salunke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 01:38 AM
Have selected update checkbox in BR,still existing incident is updating .