How in ServiceNow the Configuration Item is created exactly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022 05:25 AM
Hi Team, Please help me understand how the CI is generated in for the asset in Computer Table ( Ex:- Laptop/Desktop)...is it ServiceNow generate it or it is done manually when we update the data in the cmdb_ci_computer table.
Is it the combination of any two / three attributes ..and get generated or automatically by ServiceNow
Please help me ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022 05:41 AM
Hi @Deepak26 ,
WE already have an OOTB business rule written on the configuration item table. which creates ASSET Record on insert of CI record.
As same as you also have the "Create CI " business rule on Asset Table.
Use that same code. Please refer below image
No need to create it once again just configure it, if required.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022 09:28 AM - edited 12-14-2022 09:34 AM
CI's are automatically created by ServiceNow when an Asset is inserted. The opposite is also true; Assets are created when CI's are inserted. This is driven by the business rules identified by the previous respondent, @Community Alums. However, there is a bit more going on. When inserting either an Asset or a Configuration Item, a Model must be chosen. That model record is tied to a Model Category record. The Model Category contains both the Asset Class, and the CI Class. These two values define into which tables the Asset and CI records are created.
There are also use cases where no corresponding record would be created. For example, Consumable assets do not have a Model Category that defines both an Asset and CI class. Consumables only have an Asset class, thus no CI's are created for consumables. A similar situation is also true. The Model Category for Virtual Machines does not have an Asset Class defined. Therefore, when a VM is inserted into the CMDB, no Asset record will be created.
This leads us to the answer to your question. The Model Category related to the Model chosen for either the Asset or the CI along with the two "Create" Business rules are what drive the creation of related Asset and CI records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022 10:05 PM
Hi Sandeep & Daniel,
Thank you very much...this is good information....
Coming to your words Daniel.." When inserting either an Asset or a Configuration Item, a Model must be chosen" for example if we consider asset as Laptop then Model - HP EliteDesk 800 G4 it is [cmdb_ci_Computer]( Model Category) and if we consider asset as router then model category will be [cmdb_ci_Network](Model Category) correct me if i am wrong...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2022 10:21 AM - edited 12-15-2022 10:22 AM
Hello Deepak,
I think you are close. Using your example of a Laptop, the baseline product contains the Computer Model category. It is to the Computer Model Category that all Laptop and Desktop models are linked to by Discovery and it should also be used when creating models manually. The Computer Model Category has cmdb_ci_computer as the CI Class and alm_hardware as the Asset Class. We'd expect that your example Hardware Product Model, "HP EliteDesk800 G4" properly maps to the Computer model category thus, if a CI is inserted by a discovery source and HP EliteDesk800 G4 is identified as the model, a corresponding Asset will be inserted into the alm_hardware table. Conversely, if an HP EliteDesk800 G4 Asset is inserted either manually or by import, it will be created in alm_hardware and a corresponding CI will be created in the cmdb_ci_computer table.
Your example of a Router would follow the same principles with the model being related to either the Network Gear or the IP Router model categories. You have discretion as to which model category to use when you create models. IP Router will create CI records in the cmdb_ci_ip_router table and Assets in alm_hardware while Network Gear will create CI records in cmdb_ci_netgear and Assets also in alm_hardware.