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

Thanks Daniel. Yes we have an requirement where we want to create asset and ci on computer class and printer class. Can we change in the condition part of the Business rules that ci and asset will only be created on computer and printer class? Please let me know.

Daniel Slocum
ServiceNow Employee
ServiceNow Employee

Yes, you can change the start criteria to only start when the class or model category is computer or printer.  Alternatively, you could leave the start condition as is and modify the advanced script to contain a function that checks for the model category/class and only continues if it is one of computer or printer.  Just be sure you understand that you are subverting the out of box functionality. If you are a customer admin be sure to document the change so those who work in the instance behind you understand what you did and why.  If you are a consultant working for a customer, be sure you include this modification in your documentation so the customer understands they've moved from oob and why the change was made.  All of this said I would still like to recommend you do not make this change.  Instead, build list view filters to prevent visibility of records you do not wish to see. When this customer decides they want to use the records, they will be there. 

Hi Daniel,

Thanks Daniel. Just a query, if i set the filter in asset table as model category is computer or printer, then when the user clicks on the 'New' button by default the model category is set as 'Computer'. So if the user wants to create a CI with model category as 'Printer', he/she needs to change the Model category as 'Printer'.

As per my understanding, let me know if the above statement is correct.

 

Yash Agrawal1
Tera Guru

Hello SSnow,

WE already have an OOTB business rule written on the configuration item table. which creates ASSET Record on insert of CI record.

find_real_file.png

As same as you also have the "Create CI " business rule on Asset Table.

Use that same code. Please refer below imagefind_real_file.png

 

No need to create it once again just configure it.

Please keep posted if more help required.

Please Mark it helpful/correct if my answer helps in any way to resolve your query.
Reach out to me if any more help required.

Regards

Yash.K.Agrawal

 

Hi Yash,

 

Yes these two BRs are already configured in the system. But my question is we need to create/update assest/CIs only for computer and printer class. So how can we configure that in these two BRs?