Configure employee center's my request menu

shun6
Giga Sage

Hi all,

 

Is it possible to customaize employee center's My request view?

There're two OOTB views "Open Requests" and "Closed Request" and I want add "All" view which display user's all  opened request.

 

shun6_0-1741767412277.png

 

Regards.

1 ACCEPTED SOLUTION

Medi C
Giga Sage

Hi @shun6,

 

There is no module in ServiceNow which gives the ability to add more items to the views. All this is hardcoded on the My Request Widget. Please follow the steps below to achieve your requirement:

 

If you are using the OOTB widget, please navigate and clone the My Request widget 
https://YOUR_INSTANCE_NAME.service-now.com/sp_config?id=widget_editor&sys_id=8cc0df25875023000f220cf...
MediC_13-1741773752298.png

 

MediC_0-1741771423235.png

 

 

 

Add the following to the "Server Script" part as per below screenshot:

 

 

msg.allRequests = gs.getMessage("All requests");​

 

 

MediC_1-1741771686835.png

 

 

else if (localInput && localInput.view === 'all'){
		data.filterMsg = gs.getMessage("Search all requests");
}​

 

 

MediC_2-1741771779181.png

 

 

Comment the following lines of code as per the screenshots below

MediC_3-1741771992700.png

MediC_9-1741773238664.png

MediC_11-1741773328503.png

 

 

Add the following the the "Client Controller" part as per the below screenshot

 

 

, {key:'all',value:c.data.messages.allRequests}​

 

 

MediC_4-1741772796246.png

 

 

Navigate to the page on your ESC.  CTRL and right click on "My Request" widget. Then click on "Page in Designer"
MediC_5-1741772864593.png

 


Look for the newly cloned widget. Drag and drop it on the page
MediC_6-1741772910650.png

MediC_7-1741772943267.png

 

 

Below are results of the Widget configuration:

MediC_8-1741772987439.png

 

MediC_12-1741773492167.png

 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @shun6 

 

Yes, 100%, but it will be a small customization. We did the same for my previous client. Don’t make any changes to the out-of-the-box widget. Instead, copy the widget and make the changes there. The logic is already in place; you just need to modify the condition for 'all,' and you're good to go. Give it a try and share your feedback.

*************************************************************************************************************
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]

****************************************************************************************************************

Medi C
Giga Sage

Hi @shun6,

 

There is no module in ServiceNow which gives the ability to add more items to the views. All this is hardcoded on the My Request Widget. Please follow the steps below to achieve your requirement:

 

If you are using the OOTB widget, please navigate and clone the My Request widget 
https://YOUR_INSTANCE_NAME.service-now.com/sp_config?id=widget_editor&sys_id=8cc0df25875023000f220cf...
MediC_13-1741773752298.png

 

MediC_0-1741771423235.png

 

 

 

Add the following to the "Server Script" part as per below screenshot:

 

 

msg.allRequests = gs.getMessage("All requests");​

 

 

MediC_1-1741771686835.png

 

 

else if (localInput && localInput.view === 'all'){
		data.filterMsg = gs.getMessage("Search all requests");
}​

 

 

MediC_2-1741771779181.png

 

 

Comment the following lines of code as per the screenshots below

MediC_3-1741771992700.png

MediC_9-1741773238664.png

MediC_11-1741773328503.png

 

 

Add the following the the "Client Controller" part as per the below screenshot

 

 

, {key:'all',value:c.data.messages.allRequests}​

 

 

MediC_4-1741772796246.png

 

 

Navigate to the page on your ESC.  CTRL and right click on "My Request" widget. Then click on "Page in Designer"
MediC_5-1741772864593.png

 


Look for the newly cloned widget. Drag and drop it on the page
MediC_6-1741772910650.png

MediC_7-1741772943267.png

 

 

Below are results of the Widget configuration:

MediC_8-1741772987439.png

 

MediC_12-1741773492167.png

 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

Medi C
Giga Sage

Hi @shun6 ,

 

I have provided detailed steps on how to achieve your requirements. Kindly check!

 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.