- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
We are using the CMDBTransformUtil() API within an onBefore transform map script to process records through the CMDB Identification and Reconciliation Engine (IRE). The transform map is targeted to the cmdb_ci_server table.
When running the transform, existing CIs that belong to a child class, Linux servers on table cmdb_ci_linux_server, are being incorrectly upgraded/changed to the parent class cmdb_ci_server instead of remaining on their original subclass. The reconciliation rule is configured for cmdb_ci_server, but the class should not be downgraded or upgraded automatically.
Existing CIs should retain their current class (cmdb_ci_linux_server), IRE should update attributes without switching the CI to a parent class.
Matched CIs are being moved from cmdb_ci_linux_server to cmdb_ci_server after cmdbUtil.identifyAndReconcile() executes.
Is there a property or setting within CMDBTransformUtil / IRE to prevent class switching?
What is the recommended approach to keep the existing CI class while still using the IRE via CMDBTransformUtil?
Script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
Here is the implementation of onBefore script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @AntonioG4352175,
Please refer to the link below:
CMDBTransformUtil - Global • Brazil API Reference • Docs | ServiceNow
If it is helpful, please mark it as helpful and accept the correct solution by referring to this solution in the future it will be helpful to them.
Thanks & Regards,
Abbas Shaik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thank you for your reply!
This is the document I am using as a reference to create the onBefore script, where I am facing the issue mentioned above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
Here is the implementation of onBefore script: