Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Mapping CI Operational status choices to the Asset state choices

IB98
Tera Sage

Hello, 

I hope someone can help me figure this one out. I am trying to sync the CI Operational status field to the Asset state field. Example, if Asset state is 'In stock' and substate 'Pending repair' the Operational status should be 'Non-operational'. How can I accomplish that? This shoiuld be OOB already, but I've added 2 more choices to the Operational status and need to adjust the mapping to direct to the 2 new choices. Thank you!

5 REPLIES 5

I've tried this code and it did not work. I am looking to see if it would be ok to base the Operational status to the install_status field on the cmdb_ci table. That would ease a lot of the trouble. I will be in touch. Thank you