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.

Change asset's class. Is it possible?

Onoderav
Tera Contributor

 

Hi,

I have a requirement to change the class (sys_class_name) of several assets (alm_asset) because it's currently incorrect. I tested this in a development environment, but it didn't go well and showed the following message:

"Change in class detected, switching from: Ativo(a) to: alm_hardware sys_id: 401b2096dbf4805013070fbca396195c FAILED TRYING TO EXECUTE ON CONNECTION glide.6 (connpid=943217): INSERT INTO alm_asset"

I was able to see the record in the alm_asset table, but since then, it's been updated, and even when searching for the sys_id, I don't know what happened.

What is the best way to achieve this?
I'd appreciate some help here

 

1 REPLY 1

Bhavani Shankar
Tera Guru

Hi @Onoderav ,

 

Assets are classified based on the Model category field.

 

Try modifying the Model category or create your own model category with your preferred class associated in cmdb_model_category table then assign this value to the asset

 

Mark as helpful if this response resolved your query

 

Regards,

Bhavani Shankar

Regards,
Bhavani Shankar
Linked In