How to add or remove choice options from sys_class_name filter?

snow_dev
Tera Expert

Hi,

I want to add/remove some classes from sys_class_name (Class) filter so that it shows the classes which are intended to be selected. 

For example, open "cmdb_ci" table in list view. Now, add a filter and select Class - is - <any_available _option>. I want to remove and add some choice options from that filter for Class field. How would I do that?

1 ACCEPTED SOLUTION

snow_dev
Tera Expert

It turned out to be a bug introduced with early London build. I raised a HI ticket and support confirmed that issue was addressed with patch-5 or later builds of London release. I upgraded sub-PROD instance to patch-7 and I no longer see duplicate entry for "Automated Business Services" class in sys_class_name drop-down.

View solution in original post

12 REPLIES 12

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

you have to go to Configuration > CI Class Manager and create your own CI class clicking on the right side of an existing CI class and select Add Child Class, it will create a new extended table of the cmdb_ci table (see image below).

I don't think there is a way to remove any existing CI Class, because you can't remove OOTB tables from the system.

find_real_file.png

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

Hi Alberto,

Thanks for the reply. I was able to add a class. However, I am not able to remove the class. How to do that?

As I already told you, there is no way to remove that because it's a table.

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

Oh, sorry. I did not read that part of your answer where you mentioned that class cannot be removed. Actually, I am in a situation where I see two classes with same name (Name: Automated Business Services) when I apply sys_class_name filter.

When I checked the filter query then found out that one class is pointing to "cmdb_ci_service_auto" table while other class is pointing to "cmdb" table.

In class manager, I see only the class which points to "cmdb_ci_service_auto" but not the other one ("cmdb"). My requirement here is to either find and remove the class which points to cmdb table or rename it to something else to avoid duplicate name. I know, it might sound bit complicated and maybe I am asking for more help; but I am kinda stuck in this situation and not able to find the class which is pointing to cmdb in class manager or elsewhere!

Any help will be highly appreciated in this regard. Thanks.