- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 10:15 PM
We are creating ESX servers so we load data into cmdb_ci_esx_server class which in turn creates corresponding CI and the asset. The same applies to the Server class (cmdb_ci_server) and other CI classes. Though this approach is desirable and less error-prone, but it requires us to create transform maps of each class separately.
So I want to be able to upload these asset using one transform map but it creating the assets on the windows server table or linux server table or computer peripheral table
Please guide and let me know how we can automate it and avoid creating many transform maps ?
Regards
Siddhesh
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 11:35 PM
Hello Siddhesh
One way I can think of to create field map of "Class" field (sys_class_name) where you can define the backend table name of each class, e.g: 'cmdb_ci_esx_server' or 'cmdb_ci_server' and this should present in your source file (csv or excel).
Using above approach you can build your transform on "cmdb_ci" table instead of individual class tables.
Hope it helps!!
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 11:35 PM
Hello Siddhesh
One way I can think of to create field map of "Class" field (sys_class_name) where you can define the backend table name of each class, e.g: 'cmdb_ci_esx_server' or 'cmdb_ci_server' and this should present in your source file (csv or excel).
Using above approach you can build your transform on "cmdb_ci" table instead of individual class tables.
Hope it helps!!
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 12:29 AM
Can you please demonstrate how can I achieve this or elaborate more so I can try in my case.
Regards,
Siddhesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 01:34 AM
Please check this article for CMDB data transformation and refer #8 & #9 to see how you can create the field map for sys_class_name.
Other Community links to see how to update the class name through transform script is as below
How to update sys_class_name via Transform Map script?
Hope it helps!!
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 09:19 AM
Thanks for your reply
I tried the way you suggested.
However, with that approach, product models are getting duplicated. . also I don't want to relying on the higher level (cmdb_ci) but on individual lower-level tables e.g. cmdb_ci_esx_server, or cmdb_ci_mfp_printer.
Is there any way I can do this?
Regards,
Siddhesh