What is the difference between the "category" field and the "kb_category" field on the kb_knowledge table? Both are labeled as "Category".

Randall King
Tera Expert

What is the difference between the "category" field and the "kb_category" field on the kb_knowledge table? Both are labeled as "Category".

The "kb_category" field is the one that's on the kb_knowledge form by default, so it appears that "category" isn't used at all. "kb_category" is a reference field, while "category" is a string field.

I'm thinking that "category" is a legacy field that has just never been removed, but I was hoping that somebody with more information about the history can give me more details.

find_real_file.png

1 ACCEPTED SOLUTION

Filipe Cruz
Mega Sage

Hi Randall,

The kb_category field is the field used in the knowledge form to set the multi-tier categorization of a knowledge article:

Define a knowledge article category

 

The legacy Knowledge v2 "category" field is no longer used:

All things Upgrade considered on Knowledge v2 to v3

Please, if this answer is relevant for you, please mark it as correct and helpful.

Thanks,

Filipe

View solution in original post

3 REPLIES 3

Filipe Cruz
Mega Sage

Hi Randall,

The kb_category field is the field used in the knowledge form to set the multi-tier categorization of a knowledge article:

Define a knowledge article category

 

The legacy Knowledge v2 "category" field is no longer used:

All things Upgrade considered on Knowledge v2 to v3

Please, if this answer is relevant for you, please mark it as correct and helpful.

Thanks,

Filipe

Thanks! I was mainly looking for confirmation that "category" was a legacy field, and you did that. I appreciate it.

BrunoPer
Tera Contributor

Updating this post with some recent feedback from ServiceNow support:

kb_category is a reference field tied to the Knowledge Category hierarchy, while category is a separate string field with documentation text describing it as a lower level of article categorization where topics can have multiple categories.

Treat kb_category as the supported field for linking a Knowledge article to a record in the Knowledge Category hierarchy. The expected outcome is that an article is assigned to a category or subcategory from that knowledge base taxonomy. Treat the kb_category table as the place where the category hierarchy is maintained for each knowledge base.

Treat category as a distinct field on kb_knowledge, not an alias of kb_category. Retrieved metadata shows it is a string field, and its English field documentation describes it as "Lower level of article categorization - Topics can have multiple Categories." Because the retrieved metadata confirms the field exists separately but does not fully prove current product behavior beyond that documentation text, use kb_category as the authoritative article-to-category linkage when you need supported knowledge category classification behavior.

 

If your goal is article classification within a knowledge base, use kb_category and the Knowledge Category hierarchy.
If you are evaluating customizations or legacy usage of the category field, review where that field is referenced in your implementation before relying on it for active classification logic.