- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2025 09:32 PM
Whenever an Incident's priority changes to P1, you want to notify the user and make attachments mandatory .How to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2025 02:52 AM
Hi @priyayadav8 ,
I tried your problem in my PDI and it works for me please create OnBefore Business Rule on your Incident table, and add below script
(function executeRule(current, previous /*null when async*/ ) {
// Add your code here
gs.log("Inside BR");
if (current.priority == 1 || current.priority == "1") {
if (current.hasAttachments() != true) {
gs.log("Inside BR IF");
gs.addErrorMessage("Please add an attachment");
current.setAbortAction(true);
}
}
gs.eventQueue('Event_Name', current, current.caller_id, current.assigned_to);
})(current, previous);
You can create a event from event Registry and create a Notification, trigger that notification when event is fired, and in who will receive section check the checkbox of recipient contains parm1 &parm2. Add your subject and body accordingly.
Result
Please mark my answer correct and helpful if this works for you
Thanks and Regards,
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2025 03:35 AM
Yes It's working
Thanks
