Assistance with Mapping Model ID for Custom Class CI and Asset Records

saurav97889
Tera Contributor

Hello,

We have created a custom class in the CMDB and are populating data into it via REST API. The setup includes multiple devices. Also, I am creating Hardware Assets for these custom class CIs to capture the depreciation process. To achieve this, I have mapped the custom class with the Asset class in the Model Categories table.

However, when the Asset record is created, the Model field is being set to Unknown, which also impacts the Display Name.

I need assistance in establishing a relationship such that, if the Model ID already exists, it automatically associates the correct model with the Asset record.

Please note that we do have Discovery set up, but since these devices are non-discoverable, we are retrieving all the data via REST APIs.

saurav97889_0-1734958396040.png

 

1 ACCEPTED SOLUTION

SELECT Username
ServiceNow Employee
ServiceNow Employee

We wouldn't recommend populating the class with a REST API Directly. Consider using an Import table so that you can run the right transformations on it...or pull the data instead using Integration Hub ETL.  The end goal here is to use something like makeAndModelJS (in a legacy transform) or the OOB transform actions in Integration Hub ETL to "Cleanse manufacturer and model" to make sure they're being set correctly.

View solution in original post

1 REPLY 1

SELECT Username
ServiceNow Employee
ServiceNow Employee

We wouldn't recommend populating the class with a REST API Directly. Consider using an Import table so that you can run the right transformations on it...or pull the data instead using Integration Hub ETL.  The end goal here is to use something like makeAndModelJS (in a legacy transform) or the OOB transform actions in Integration Hub ETL to "Cleanse manufacturer and model" to make sure they're being set correctly.