Hide/Show Lists based on Workspace view Rule or any other way

Community Alums
Not applicable

We want to show/hide the lists on FSM/ CSM Workspace based on the workspace view(if possible) or roles or there is any other way.

We have workspace views defined based on roles , so we want to show/hide the lists for different users based on workspace views.

gauravtygai_0-1705580135202.png

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Here is the full way to make it possible -

Create the new list:
Step 1- Go to /sys_ux_list_menu_config_list.do and find your workspace that you want to add the list to.

Step 2- Open the related list (UX List Categories) which section you want the list to appear in the lists view (table name: /sys_ux_list_category_list.do).

Step 3- Create/update the list as you desire in related list (UX List) and save (table name: /sys_ux_list_list.do)

Once above steps are done a Admin will be able to view the list, but the issue is that the Agent wont be able to view it. That's where the m2m table comes in.
Create the new m2m record:

Step 4- Go to /sys_ux_applicability_m2m_list_list.do in order to add the list there with the defined role, create a new record there with the related list category you added the list in step 3.

View solution in original post

3 REPLIES 3

Siddhesh Gawade
Mega Sage
Mega Sage

If you have view defined, then you can create a client script and using the "view" field you can hide a related lists by:

 

g_form.hideRelatedList('relatedListName');

 

SiddheshGawade_0-1705594450768.png

 

Kindly mark the answer ✔️Correct or Helpful ✔️If it addresses your concern.


Regards,

Siddhesh

 

Manoj89
Giga Sage

Hi Tygai,

 

You can do it, from the table "sys_ux_list" by adding the view and restricting the view based on roles

Manoj89_0-1705596005060.png

This article will help you --> Configuring Lists in Configurable Workspace - ServiceNow Community

 

Community Alums
Not applicable

Here is the full way to make it possible -

Create the new list:
Step 1- Go to /sys_ux_list_menu_config_list.do and find your workspace that you want to add the list to.

Step 2- Open the related list (UX List Categories) which section you want the list to appear in the lists view (table name: /sys_ux_list_category_list.do).

Step 3- Create/update the list as you desire in related list (UX List) and save (table name: /sys_ux_list_list.do)

Once above steps are done a Admin will be able to view the list, but the issue is that the Agent wont be able to view it. That's where the m2m table comes in.
Create the new m2m record:

Step 4- Go to /sys_ux_applicability_m2m_list_list.do in order to add the list there with the defined role, create a new record there with the related list category you added the list in step 3.