UI Policy for SOAR Integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 02:43 AM
Hi All,
Requirement:
If caller = Securonix admin,imapct =1,Urgency=1,we need to update priority as 'HIGH' .
We have tried the below UI policy its working fine (we are getting the result as priority HIGH but its overriding another script ). Can anyone guide us how to resolve this. Screenshot is attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 02:56 AM
Hi @ShiningStar1 ,
Could you please provide more info on what is getting overridden.
Is it another UI policy or any client script? Please confirm- & share more info so that I can help you with this.
Thanks & Regards,
Madhan Somesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 03:56 AM
Hi Madhan,
I have written an On change client script as well but their is a Business rule which is present and its overridding the priority field.
var user = g_user.userID;
var impact = g_form.getValue('impact');
var urgency = g_form.getValue('urgency');
var user = g_user.userID;
if (user =='211fe04f1b817510a136a6c8bd4bcb7b'&& impact == 1 && urgency == 1) { //Assuming 1 as High
g_form.setValue('priority',HIGH);
} else if (impact == 2 && urgency == 2) {
g_form.setValue('priority',MEDIUM); //Assuming 2 as Medium
} else if (impact == 3 && urgency == 3) {
g_form.setValue('priority',LOW); // Assuming 3 as Low
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 04:07 AM - edited 02-15-2024 04:26 AM
Hi @ShiningStar1 ,
The only way to achieve this functionality & fix this conflict is to go for an Before/After Insert, Update business rule by setting order of your BR more than the one which is overriding it.
As the On-change client script executes first when the record is getting saved to the server the BR that you've mentioned will override it. So, please create a new Business rule as below. It'll be more easier approach as well as there won't be any conflicts with BR if we set order more than the overriding one.
Please mark it as "Accept as Solution" and " Helpful. if this solution helped you.
Thanks & Regards,
Madhan Somesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 02:59 AM
UI Policies are used for Making the field Mandatory, Read Only, Visible true/False.
If you have to set the value on the Priority field, you can use client script (On-Change) or On Load.
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful."