HOW TO CONFIGURE LIST MENUS based on Server-side logic IN SERVICENOW CONFIGURABLE WORKSPACE

PrabhakarS62314
Kilo Contributor

In one of my recent projects, I worked on a scoped application where I need to configure list menus for Service Operations Workspace. To my surprise, OOB the visibility of the list was exclusive to administrators within the Service Operations workspace. Users with no other roles including the “itil” has visibility.

 

To make the lists visible to everyone, several steps need to be configured.

 

Please find the detailed steps below:

(In this example Facilities management request a list menu)

 

Step 1: Initially, establish or define modules within this table – sys_ux_list

 

PrabhakarS62314_0-1769626110352.png

 

 

Step 2: Utilize this table to categorize the list - sys_ux_list_category

 

PrabhakarS62314_1-1769626110372.png

 

 

Step 3: Configure right audience(roles) using Audience form - sys_ux_applicability

 

Use the Roles list collector to add roles for which this list menu should be visible.

 

PrabhakarS62314_2-1769626110408.png

 

 

Step 4: Map the audience to the lists - sys_ux_applicability_m2m_list

 

PrabhakarS62314_3-1769626110435.png

 

This is how the end result looks like :

 

PrabhakarS62314_4-1769626110404.png



This is nice, But my use-case is little extension of this. Here you're giving list menu access on the basic of static roles, But what if we want to give the access based on some server side data.
In this case we need to write server-side logic, But I didn't find any place where we can write server side logic on UI builder.
You can find possible solutions, But none of them are working.

image.png


Help me if you encountered same situation.
Thanks In advance.

 

0 REPLIES 0