How can I reorder the Experiences on the Workspaces drop-down menu?

WORKFLOW-COWBOY
ServiceNow Employee
ServiceNow Employee

For the Experience Category "Workspace", there is a related list called "UX Application Category M2Ms" that has a list of Workspaces to show in the drop-down.

I have many, many Workspaces on this menu and it would be much easier if they were in alphabetical order.  How can I achieve this? 


--------------------------------------------------
Workflow Cowboy
LinkedIn: https://www.linkedin.com/in/dalestubblefield/
YouTube: https://www.youtube.com/@starlordnow
1 ACCEPTED SOLUTION

Arnoud Kooi
ServiceNow Employee
ServiceNow Employee

For fun, I tried and a query BR on sys_ux_registry_m2m_category seems to work:

(function executeRule(current, previous /*null when async*/) {

	current.orderByDesc('page_registry');

})(current, previous);

The cache seems to be quite persistent, you need to run cache.do

After that check in an incognito window.
To see in the current browser you can run localStorage.clear(); in the browser console.

 

View solution in original post

3 REPLIES 3

Yousaf
Giga Sage

Hi Dale,

I dont think there is any OOB configuration for this 
Maybe you can try by writing a script in business rule to sort this in sys_polaris_menu_config.list

 

 

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***

Arnoud Kooi
ServiceNow Employee
ServiceNow Employee

For fun, I tried and a query BR on sys_ux_registry_m2m_category seems to work:

(function executeRule(current, previous /*null when async*/) {

	current.orderByDesc('page_registry');

})(current, previous);

The cache seems to be quite persistent, you need to run cache.do

After that check in an incognito window.
To see in the current browser you can run localStorage.clear(); in the browser console.

 

Thanks Arnoud, that worked great! 


--------------------------------------------------
Workflow Cowboy
LinkedIn: https://www.linkedin.com/in/dalestubblefield/
YouTube: https://www.youtube.com/@starlordnow