Replicating adding a scripted list menu item in Employee Center

danno928
Tera Expert

We recently migrated from Service Portal to Employee Center only to find out that a fairly critical functionality that was used in Service Portal was missing in Employee Center.

 

Background:

We have a custom table for associate onboarding/offboarding records that are then fed into order guides to generate requests/requested items/catalog tasks. The logic here was so our HR team could submit the initial record and then assign the order guide to managers to complete. For this to work, the 3rd party implementer used a pretty well known script for scripted list menu items to fetch these records and then deliver them to the Service Portal header menu in a scripted list so that the records could be opened in their respective order guide.

 

Fast Forward:

Upon implementing Employee Center we tried replicating this functionality by adding a new scripted list menu item with the same script, only making it a child of the Employee Center header menu item. This unfortunately did not work, because (as ServiceNow support has told me) items can only be added to the Employee Center header menu as a child of the 'More' menu item, which renders the scripted list unfunctional. 

 

I did some searching around and found that we could, however, add a menu item (sn_ex_sp_portal_extensible_navigation_item) to the Advanced Portal Navigation (sn_ex_sp_portal_extensible_navigation) and call on the scripted list menu item that we created under the Employee Center menu... and IT WORKS!!

**side note - if you are still using OOB taxonomy to populate your mega menu, I HIGHLY recommend you implement Advanced Portal Navigation as it gives you more control over the layout of the mega menu**

 

Now... THE PROBLEM:

While this solution I have does indeed call up these records and deliver them to a scripted list in the mega menu... well... it appears blank 😑. However, if you hover over the records delivered in this list, you can tell they are there and clickable, and they do function - they do exactly as Service Portal did. It's just the text for the links are invisible.

 

I have searched all over (community included). I've looked in the css for the header menu which is to the best of my knowledge where it's being controlled from. Some community posts point towards the menuTemplate and spDropdownTree angular ng-templates, but I am not finding anything in those records that could be causing the links to be invisible. Here's a screenshot for context... 

 

AssocMgmt.png

 

 

If anyone has any ideas.... please help 😎

1 ACCEPTED SOLUTION

Alex Aluchi
Tera Guru

Hello Danno,

 

The dropdown list is rendered by Employee Center Navigation widget (you can have a look there in order to understand the structure). If in the menu scripted list you attribute the display value to a.title you have to change that to a.name as that is displayed by the widget.

AlexAluchi_0-1727698468199.png

 




View solution in original post

4 REPLIES 4

Alex Aluchi
Tera Guru

Hello Danno,

 

The dropdown list is rendered by Employee Center Navigation widget (you can have a look there in order to understand the structure). If in the menu scripted list you attribute the display value to a.title you have to change that to a.name as that is displayed by the widget.

AlexAluchi_0-1727698468199.png

 




ALEX!!!!! You have no idea how much you just made my day, my week, my month, my year!! THANK YOU!!!

 

ted-lasso.gif

 

Hey, i think you picked your own comment as accepted solution instead of Alex Aluchi's comment

OOOOF!! Thanks for the heads up! @Alex definitely deserves the credit.