Limit the dropdown list of "Transfer Case" UI action in backend.

anirban300
Kilo Guru

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?

find_real_file.png

2 REPLIES 2

MrMuhammad
Giga Sage

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.

https://<YOUR INSTANCE NAME>.service-now.com/nav_to.do?uri=sys_ui_page.do?sys_id=452f10e42f131200b3c...

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

Regards,
Muhammad

Hello 

I have tried this but it did not work.

 

Does anyone having any another solution 

 

Thanks in advance..!!!