- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 07:46 PM
Hi Team ,
We have request that , whenever any end user creating new problem request their assigning to their own team .
When they are saving the form , I need to throw an error message stating , Please assign the problem request to ' Problem manger group ' and that to assign Problem Manager group .
Can any one please provide me to achieve this requirement .
Please provide me configuration screenshots for better understanding .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 07:58 PM
@nameisnani Can you try writing a before-Insert Business rule on your problem table with below script.
(function executeRule(current, previous /*null when async*/) {
// Replace 'Problem Manager Group' with the sys_id of the actual Problem Manager group
var problemManagerGroupSysId = 'sys_id_of_problem_manager_group';
// Check if the assignment group is not the Problem Manager Group
if (current.assignment_group != problemManagerGroupSysId) {
gs.addErrorMessage('Please assign the problem request to the Problem Manager Group.');
current.setAbortAction(true); // Prevent the record from being saved
}
})(current, previous);
please mark my response as helpful 👍and accepted solution ✅if it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 07:58 PM
@nameisnani Can you try writing a before-Insert Business rule on your problem table with below script.
(function executeRule(current, previous /*null when async*/) {
// Replace 'Problem Manager Group' with the sys_id of the actual Problem Manager group
var problemManagerGroupSysId = 'sys_id_of_problem_manager_group';
// Check if the assignment group is not the Problem Manager Group
if (current.assignment_group != problemManagerGroupSysId) {
gs.addErrorMessage('Please assign the problem request to the Problem Manager Group.');
current.setAbortAction(true); // Prevent the record from being saved
}
})(current, previous);
please mark my response as helpful 👍and accepted solution ✅if it helps