Poulate priority onchange based on Category, Subcategory in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2023 07:08 AM - edited ‎12-18-2023 09:40 AM
Hello ServiceNow Community,
I'm currently working on a system where the priority of requests needs to be dynamically assigned based on specific criteria provided within the Category, Subcategory.
Our request table contains these fields, and we aim to automate the prioritization process according to the values selected or entered into these fields, not just upon form submission
The priority should be determined based on these values. For example:
- If Category is 'Technical Issue' and Subcategory is 'Software' the priority would be 'High.'
- If Category is 'Request for Information' and Subcategory is 'General Inquiry,' the priority would be 'Low.'
I'm considering using a Business Rule or Client Script to do this process. Could someone guide me on how to implement this effectively? Any sample code snippets or best practices for achieving this functionality would be immensely helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 04:44 AM - edited ‎12-19-2023 04:46 AM
Hi @i_sachin_
Can you please refer the below article :
https://www.servicenow.com/community/developer-forum/priority-calculation/m-p/2258356
You need to create a Data lookup Definition to achieve this and add records to "dl_u_priority" table.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 04:50 AM
Hi @i_sachin_
Greetings!!
It is do able
1. Deactivate the OOTB priority look up .
2. Create a new table extend from Matcher table
3. Create 3 fields, category and sub category, priority
4. Create the look up details like this
5. Go to data look up --> New
6. Create the new look up where you are doing mapping for source and destination like
7. Set the matcher and update the setter like this
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************