How can I rename My Requests in header menu?

Lisa22
Tera Contributor

I want to change "My Requests" to "My Tickets" on the header menu.  How can I do that?

Lisa

1 ACCEPTED SOLUTION

rgm276
Mega Guru

I think the best way to do this, is to use the message translation configuration, since the employee center header widget is coded to use ${My Requests},

 <li class="main-header-item" ng-if="data.showRequests" role="menuitem">
<a href="?id=my_requests" id="requests_mobile" aria-label="${My Requests}">
<span ng-bind-html="'${My Requests}'" aria-hidden="true"></span>
<span ng-show="data.requestCount" class="label label-as-badge label-primary">{{data.requestCount}}</span>
</a>
</li>

which in the portal/widget world means that it will look to see if there is any translation (regardless of english, spanish, etc.)

so you can simply edit the configuration in the System Localization table and edit the value to My Tickets

https://(yourinstance).service-now.com/sys_ui_message_list.do?sysparm_query=keySTARTSWITHMy%20Requests

and if the record does not exist, you can simply create this record for your instance

 

find_real_file.png

 

The only other option I am aware of , would be to clone the header and change the code, which is typically not recommended unless there is a strong use-case that some other aspect of the header needs to change, not just the text values.

Hope this helps 

View solution in original post

4 REPLIES 4

Musab Rasheed
Tera Sage
Tera Sage

Hi Lisa,

Go to portal by using below link

https://yourinstance/sp_portal_list.do?sysparm_userpref_module=7307d93147032100ba13a5554ee490eb&sysparm_clear_stack=true

Open portal record and search for "Main Menu' and open in new tab

find_real_file.png

 

In that scroll down till 'Menu Items' you will find there, Mark my answer as correct

Please hit like and mark my response as correct if that helps
Regards,
Musab

I don't actually see "My Tasks" and "My Requests" from that related list.

find_real_file.png

Dan O Connor
ServiceNow Employee
ServiceNow Employee

This is because the steps provided in the previous post are for Service Portal. But as you are using Employee Service Center, 'My Requests' is hardcoded into the widget directly. In order to change this, you would need to clone the OOTB widget and make the change.

 

Then ensure that you have your new widget defined in the Header instance. 

rgm276
Mega Guru

I think the best way to do this, is to use the message translation configuration, since the employee center header widget is coded to use ${My Requests},

 <li class="main-header-item" ng-if="data.showRequests" role="menuitem">
<a href="?id=my_requests" id="requests_mobile" aria-label="${My Requests}">
<span ng-bind-html="'${My Requests}'" aria-hidden="true"></span>
<span ng-show="data.requestCount" class="label label-as-badge label-primary">{{data.requestCount}}</span>
</a>
</li>

which in the portal/widget world means that it will look to see if there is any translation (regardless of english, spanish, etc.)

so you can simply edit the configuration in the System Localization table and edit the value to My Tickets

https://(yourinstance).service-now.com/sys_ui_message_list.do?sysparm_query=keySTARTSWITHMy%20Requests

and if the record does not exist, you can simply create this record for your instance

 

find_real_file.png

 

The only other option I am aware of , would be to clone the header and change the code, which is typically not recommended unless there is a strong use-case that some other aspect of the header needs to change, not just the text values.

Hope this helps