Create CI from asset using button

Aastha_D
Giga Contributor

I have written a Ui action as -(new AssetandCI()).createCI(current); current.update(); action.setRedirectURL(current);" to create CI from asset record where CI  is empty but this is not working.Any tips?

1 ACCEPTED SOLUTION

Mahak2
Kilo Guru

Hello,

 

Check the asset details whether asset is having the serial number or not.

It is one of the main attribute for the CI.

Also there is out of the box BR which will automatically create CI from asset once serial number is assigned to the Asset.

Please refer to below articles as well:

https://community.servicenow.com/community?id=community_question&sys_id=56a74fa9db1cdbc01dcaf3231f96199e

https://community.servicenow.com/community?id=community_question&sys_id=4d4a87f0dbaa6410f21f5583ca961925

Kindly check and confirm this.

View solution in original post

2 REPLIES 2

suvro
Mega Sage
Mega Sage

If your Asset's Model's asset_tracking_strategy is 'leave_to_category' then only it creates a CI

find_real_file.png

Mahak2
Kilo Guru

Hello,

 

Check the asset details whether asset is having the serial number or not.

It is one of the main attribute for the CI.

Also there is out of the box BR which will automatically create CI from asset once serial number is assigned to the Asset.

Please refer to below articles as well:

https://community.servicenow.com/community?id=community_question&sys_id=56a74fa9db1cdbc01dcaf3231f96199e

https://community.servicenow.com/community?id=community_question&sys_id=4d4a87f0dbaa6410f21f5583ca961925

Kindly check and confirm this.