Limit the dropdown list of "Transfer Case" UI action in backend.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2022 12:13 AM
Hello,
I want to limit the dropdown values of the field "New HR Service" to show only the Main Service. Can someone tell me how can we do it?
- Labels:
-
HR Service Delivery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2022 01:09 AM
Hi,
You have to modify the UI page "Transfer Case".
1. Open Ui Page "Transfer Case". Replace <YOUR INSTANCE NAME> with actual name of instance to access the UI page.
2. In the HTML editor, scroll down to line 21.
var gr = new GlideRecord('sn_hr_core_service');
3. Add a new line to apply a filter of your choice. Right now it's taking all the values from the sn_hr_core_service table
EXAMPLE FILTER (ENCODED QUERY)
gr.addEncodedQuery("topic_detail=eea6c7cd9f321200d9011977677fcf41");
You can modify the filter as per your needs.
4. Save the page and New HR Service will display the filtered list.
Please note that this modification is about customizing the OOB UI page so please ensure during upgrades you have to manage this yourself. Servicenow won't upgrade this UI page automatically.
Please mark this as helpful/correct, if applicable.
Regards,
Muhammad
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 02:26 AM
Hello
I have tried this but it did not work.
Does anyone having any another solution
Thanks in advance..!!!