Need help on creating asset/Ci for only Computer class

Ssnow
Kilo Contributor

Hello,

I am new to ITAM module. Please help how to implement the below requirement.

I want to create CI from asset and create asset from CI for only Computer class in a bidirectional way but need to prevent any other CI to create from asset but assets can be created from CI.

Do i need to update Business Rules?

Please help me  to achieve this.

Thanks in advance!

1 ACCEPTED SOLUTION

Hello Ssnow,

No, you don't need to add anything in that.just add Condition like 

ci's class is  Computer.

The code is already there given by ServiceNow, you just need to set the condition, so that the code for inserting/updating ci and asset execute only when the condition matched.

Snow,If you fell my answer helps you reach ti your goal,and If provided right Knwledge to you ,then will you Please Mark my answer as CORRECT and HELPFUL.

And close the coverstion,It will also help other who are seraching for same answer.

Regards,

Yash Agrawal

View solution in original post

14 REPLIES 14

Tanushree Doiph
Mega Guru

Hi,

Assets are tracked with the Asset Management application, which focuses on the financial aspects of owning property. Configuration items are stored in the CMDB, which is used to track items and make them available to users.

When an asset has a corresponding configuration item, the asset record and the configuration item record are kept synchronized with two business rules.

  • Update CI fields on change (on the Asset [alm_asset] table)
  • Update Assets on change (on the Configuration Item [cmdb_ci] table)

Note: Assets and CIs can be synchronized only if they are logically mapped.

Source: Link

Thanks Tanushree. But I need to create ci and asset only for computer class but wont be able to create ci for any other class other than Computer. How can i achieve this?

For that, you can copy the OOB business rule and change it as per your requirement and create your own and just deactivate the OOB business rule.

Daniel Slocum
ServiceNow Employee
ServiceNow Employee

Hello,

What you are requesting can be done but the question is why would you want to change the OOB functionality to this magnitude? The Asset record represents the financial and physical management of an asset owned by an organization.  The CI record contains the utilization and composition data of a device.  If you limit Asset/CI pair creation to just the Computer class, you'll be missing a great deal of data for other classes such as routers, switches, wireless access points, racks, etc.  Even if your organization has no plans to mature an Asset program in the short term, it is unwise to omit the creation of these records, which will be required when asset management grows in priority.

May I suggest as an alternative creation of a default filter that automatically limits the records seen in the asset list view to just computer assets? This will allow your organization to retain OOB features but limit the visibility of assets to just those records you currently care about.

Follow these instructions to create a default filter.

If you are determined to make a dramatic change, you can modify the "Create CI on Insert" business rule and the "Create Asset on Insert" business rules to include a function to check the Model Catagory and end the function before record creation if it is not Computer.