Adding variable to the list view of a custom table

Ramel
Mega Guru

Hi Community,

I just want to check if adding the catalog variable to the list of a custom table is possible? I have seen some posts here in the community that they are able to add the catalog variable in the list view by creating new view and then create the list/list element following variables.sys_ID [https://community.servicenow.com/community?id=community_question&sys_id=f8270329db1cdbc01dcaf3231f96198c]. This solution works if I create it in the sc_req_item table. I can see the variable and I can add it. But when I tried to create in the custom table following the same steps it is not working. The variable is still not showing and can't be added in the list view.

Can somebody advise if that is doable in custom table? If not, are there any alternative solutions so that I can add the catalog variable in the custom table list view? Thanks in advance.

Regards,

9 REPLIES 9

Wayne Richmond
Tera Guru

Hi Ramel. If I'm understanding the requirement correctly, you'll need to create a new Formatter for your custom table. Search 'formatters' in your menu filter. Open the link and find the existing one called 'Variable Editor'. You'll find two. Open the one for Requested Item. Change Table to your custom table and do Insert and Stay. You can now add the variable editor to your custom table form.

Hi Wayne, Not really a variable editor that needs to be added to my custom table form. It is about adding the catalog variable to the list of the custom table, not necessarily in the form, just the list view. From this community post - https://community.servicenow.com/community?id=community_question&sys_id=f8270329db1cdbc01dcaf3231f96198c ; they provided how it can be done but it is in sc_req_item table and it worked. But when I tried in my custom table it does not work. Hope that clears what I want to achieve. Regards,

SumanthDosapati
Mega Sage
Mega Sage

Hi, You are able to do it in RITM table because RITM holds the variables values in it and we can access it.

But if your custom table do not hold the variable values then it is not possible to show the variable in list of your table.

 

Regards,
Sumanth

Hi Sumanth, So it is not possible to do in custom table? Are there any work around? Regards,