- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2022 02:36 AM
My organisation want to set priorities for users logging incidents based on VIP flags all from the service portal.
This is our current form for creating incidents:
Now is it possible in the back end to say set a default priority to 2 for VIP users and have non VIP's as 3?
Any help for guidance on this would be appriciated.
Alex
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2022 03:46 AM
Hi,
do you want to check the user selected in Open on behalf of this user is VIP or not?
if yes then you can do this
if(producer.variableName.vip == true){
current.priority = 2;
}
else{
current.priority = 3;
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2022 02:55 AM
Hi Alex,
Yes it is pretty much possible. Create a BR that will run when before an incident is created. Check if the VIP checkbox of caller is checked to true and if yes set the value of priority to P2 and if not set the value as P3.
var vip = current.getValue(caller.vip);
if (vip == true){
current.setValue('priority' , 2);
}
else{
current.setValue('priority' , 3);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2022 03:05 AM
Hi Alex,
You can use solution provided by Vishnu. However, most of the organizations have multiple external tools creating incident in SNOW through integration, if that is the case with you then please add gs.isInteractive() condition in BR.
Let me know if you need help further.
Please mark this as Correct or Helpful based on the impact.
Thanks and Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2022 03:11 AM
Hi,
I assume your above form is a record producer
in that case yes you can use record producer script itself
But basically Priority is calculated OOB based on matrix and it depends on Impact + Urgency
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2022 03:28 AM
Hi Ankur,
That's correct, yes its a record producer.
I'm not familiar with scripting in the platform so is there somewhere I can find what I need to add to the record producer script?
I assume based on what your saying its not as easy as saying:
If user is VIP set priority to 2 else set to 3 (but in scripting language)