How to create a corresponding CI from an existing asset record?

cuong2
Tera Contributor

How would I create a new configuration item (CI) from an existing asset record?  ServiceNow provides the option to create an asset from an existing CI record but not the other way around.

1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

Hi, OOB an Asset automatically creates a CI on insert. Looking at the insert BR's for asset tables,
'Create CI on insert' would appear the be the rule that does this (I didn't test) and the code for this is simply
(new AssetandCI()).createCI(current);

You can read the code to see what goes on and why, but even without an end to end review you can probably utilize the same functionality via an update BR that triggers when the asset CI field is empty, or you could create a UI action for a more granular control.

View solution in original post

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, OOB an Asset automatically creates a CI on insert. Looking at the insert BR's for asset tables,
'Create CI on insert' would appear the be the rule that does this (I didn't test) and the code for this is simply
(new AssetandCI()).createCI(current);

You can read the code to see what goes on and why, but even without an end to end review you can probably utilize the same functionality via an update BR that triggers when the asset CI field is empty, or you could create a UI action for a more granular control.