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

Hello Snow

Very easily you can do that.

open that business rule and go to "When to Run" Section,in that set the filtered condition like below.

So that the business rule code will execute only when the class is "personal computer" use and condition to add more class.

 

find_real_file.png

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,

I think we need to add CI class to get the Computer and Printer CIs. Is that correct?

find_real_file.png

Hello Snow,

Here is the catch.

If you are writing business rules on the ASSET table and you want to do check the class of the "CONFIGURATION ITEM" table then in the condition it should be configuration item.class.

If you are writing business rules on the CI table and want to check ci class then directly access it using the "Class" field.

I hope you got my point.

Please keep posted, if more help required.

If I provided the Right knowledge.Please Mark my answer CORRECT and HELPFUL.

Regards,

Yash Agrawal

 

Hi Yash,

Thanks a lot. I do have another question, since we are only creating/updating asset/ci so other than adding the conditions do we need to change anything in these conditions below:

find_real_file.png

 

 

find_real_file.png

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