Configuration Item to Asset Sync not working

Antti Luusua
Kilo Guru

EDIT: Okay so I tested it on a developer instance and it works just like in my instance so this is OOB behaviour and possibly intended? Is there a way to fix this?

 

Hello ServiceNow Community, I have an issue I just cannot fix.

Configuration Item to Asset Status sync is not working. If I set my Configuration Item (computer in cmdb_ci_computer) to Retired, in Hardware Assets it stays as 'Installed'. However, if I change the status in Asset to 'Retired' it will also be marked as 'Retired' in the Configuration Item table. 

 

Asset - CI Install Status Mapping is as it was OOB. I've tried to find a solution and I can see a lot of people having similar issues but they are always pointed towards activating that rule but in my instance it is already active.

find_real_file.png

It does not matter if the change to Configuration Item is made by a script, by a Flow or manually by the form. It never updates on the Asset side. Syncing the other way works though.

 

I really appreciate if someone could steer me towards an answer to this. 

 

Thank you in advance!

 

 

1 ACCEPTED SOLUTION

I sense already Business Rule is There by Default and if you want more customization You can create new BR as per your need. 

View solution in original post

5 REPLIES 5

Vishal Savajia1
Kilo Sage

Please Follow these Steps 

Asset and CI management | ServiceNow Docs 

 

Map asset state and CI hardware status

Map the asset State and Substate fields to the CI Install Status field. Don't use the Substatus field on hardware CIs because the CI synchronization does not update the field when assets are updated. When you create the mapping, you can set the synchronization direction from the asset, CI, or both.

Before you begin

Role required: admin or asset
Note: If you upgraded from a prior release and you've customized the AssetAndCISynchronizer script before the upgrade, overwrite the customization and then recreate the custom mappings.

Antti Luusua
Kilo Guru

Okay so I am answering my own question but I found a solution. It might not be the most efficient one but it seems to be working.

 

I created a new Flow using the Flow Editor. The Flow will trigger whenever a record in cmdb_ci_computer is marked as 'Retired'. Then it will do the update on the Asset side of that CI. If anyone has a better way of dealing with this issue I am more than happy to take advice from people with more knowledge than myself.

I sense already Business Rule is There by Default and if you want more customization You can create new BR as per your need. 

Thank you Vishal - I think I overly complicated things and creating a new business rule instead of a Flow is a much more elegant solution. Thank you.