How to Add Catalog Variables in the Table List View

ali bhatti
Tera Contributor

Recently, one of my end users required that catalog variables be displayed directly in the table list view. Normally, variables are displayed in the form but not in the list view. After exploring the solution, I found an approach that allows us to display catalog variables in the list view without any scripts. Below are the steps I followed to achieve this.

 

 

Step-by-Step Guide:

  1. Open Views:
    • Start searching for "Views" in the ServiceNow instance search bar and open the Views module. This is where you will configure the display settings for the list view.

alibhatti_0-1751996530623.png

 

 2 . Create a New View (If View does not exist):

    • After clicking the Views section, create a new view representing your catalog item.
    • For this example, I will use a User Access catalog item.

               

alibhatti_1-1751996530627.png

 

 3 . Configure Form Section:

    • Once the new view is created, navigate to the Form Sections tab.
    • Here, select the sc_req_item table (the catalog item table) under the "Table" field.

alibhatti_2-1751996530631.png

 

 4 . Add List Elements:

    • Now, switch to the Lists tab.
    • Create a new List element for the sc_req_item table.
    • Under the Related List, add the necessary fields. You can select existing fields or add new ones that correspond to the catalog variables.

                

alibhatti_3-1751996530636.png

 

 

 5 . Add Catalog Variables:

    • To add the catalog variables, you need the sys_id of the variables. Go to the catalog item, find the variables you want to add, and copy their sys_id.
    • In the List Elements section, paste the variables.sys_id of the variables into the corresponding fields. I added two variables: Role Access and Group Name.

 

alibhatti_4-1751996530641.png

 

 

alibhatti_5-1751996530645.png

 

 6 . Complete the List Elements:

    • After adding the required variables, the final setup will have both the out-of-box fields and the catalog variables displayed in the list view.

7 . Review in List View:

    • After saving your configuration, navigate to the table sc_req_item List View and switch the view to user access. You should now see the catalog variables (like Role Access and Group Name) in the list view, alongside the other out-of-box fields.

alibhatti_6-1751996530648.png

 

8 . Final Touches:

    • Finally, verify everything is correct. Make sure the catalog variables are showing as expected in the list view. You can also make further adjustments if needed to improve the layout or visibility.

 

Regards,

Saadat Ali

2 REPLIES 2

GlideFather
Tera Patron

Thanks for sharing! it might be handy one day 🙂

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


FujiRM
Tera Contributor

Thanks for sharing, @ali bhatti . I can't find how or where to select the sc_req_item table (the catalog item table) under the "Table" field as stated in Step 3. What am I missing? Advanced thanks!

 

FujiRM_0-1761185707947.png