- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2023 11:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2023 11:49 PM
Hi @Community Alums , you can use before Business Rule with insert and update checked where condition will be 'short description changes'
Here is the script :
(function executeRule(current, previous /*null when async*/ ) {
// Add your code here
var shortDescription = current.short_description;
var gr = new GlideRecord('incident');
gr.addQuery('short_description', shortDescription);
gr.query();
if (gr.hasNext()) {
gs.addErrorMessage('Short Description already exists');
current.setAbortAction(true);
}
})(current, previous);
Note : you can replace hasNext() with next() if you want to show the Incident Number on the error message.
Mark this as solution if it's working 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2023 12:08 AM
Not a real requirement just a use case that I was implementing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2023 12:14 AM
just to test, meaning not for real?
I don't see any value in this restriction why would anyone like this? (What is the use case?)