Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Empty Model categories

Mark Wood
Tera Contributor

Hello team,

While creating a CI in CMDB, I selected a model that did not have any category. However, the asset was still created under the "Computer" category because my CI class was "Computer."

Does this mean that if a model has no category, the asset is created based on the current CI class? Can someone clarify this?

Thank you.

1 REPLY 1

Kieran Anson
Kilo Patron

Hey Mark,

Because cmdb_model_category only allows a CI class to have a single entry in this table, ServiceNow has some logic to ensure an asset is created (where appropriate).

  1. It'll search cmdb_model_category based on the CI class
  2. It'll also check to see if the model_id on the current record has model categories
  3. If there is a record in cmdb_model_category, AND the model specified has no model category, the system will update that model to have the category found when searching cmdb_model_category. So in your case, your model should now have "Computer" as a category
  4. If there is no model provided on CI creation, a generic "unknown" model is used
  5. Otherwise, null is returned and no asset is created