Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
CI records are updated with Asset reference field, when a record is updated/inserted in cmdb_model table. - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • CI records are updated with Asset reference field, when a record is updated/inserted in cmdb_model table.
KB0725829

CI records are updated with Asset reference field, when a record is updated/inserted in cmdb_model table.


1969 Views Last updated : Apr 29, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Overview


When you see that a CI record which was missing the "Asset" reference field, is now populated by the related asset reference when a model category is added/changed in a cmdb_model record corresponding to that CI. This is due to a business rule "Sync model category"

Subject


The "Sync model category" business rule, creates the assets for CI's belonging to the particular model, if they are missing in the first place. So this business rule triggers only when "cmdb_model_category" field on the cmdb_model record changes. If a model category is added or removed from the list, then the business rule is triggered, and it calls createMultipleAssets function from AssetandCI script include. 

Here, it checks all the CI's that belong to the class associated with the cmdb_model_category that was added. Say for example, "hardware" model category was added to a cmdb_model record, then the script checks all the CI's with that model, in cmdb_ci_hardware table to see if the CI's have an asset record associated with them. If an asset record is not associated, then it creates an asset record in alm_harware table and references it to the "asset" field on the CI. 

So this business rule does not always get triggered when cmdb_model records are updated, but only when there is change to the model categories or when they are created. Also if the CI record already has an a proper asset record linked to it, then it would not update the CI record

 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.