How to update fields based on multiple unique fields(name and serial number) and how to call call Identification Rules when using Robust Import Set Transform Maps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2022 05:05 AM
Hi,
I wanted to update multiple tables using transform map so i have created Robust Importset Transform map.
i am able to create records in both Windows and Linux tables and update records using name field as coalesce field .
1. Please guide me how to update fields based on both Name and serial number( i wanted to identify the records with both name and serial number )
2. please guide me how can we call a Identification rules from this Robust transform
From Normal Transform Map - we can use Transform Script option to call IRE like below
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {
var cmdbUtil = new CMDBTransformUtil();
cmdbUtil.identifyAndReconcile(source, map, log);
ignore = true;
})(source, map, log, target);
how to call Identification and recon rules when using Robust Transform Map
please help here!
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2022 08:50 AM
Hi,
My understanding that even with Robust Transform Maps the IRE Api would still behave the same way.
This article contains a really nice flowing explaining the API's process.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0750386
Ideally it would be looking at the CI Identification Rules defined in the cmdb_identifier so if you are looking to update fields based on both Name and serial number, you would probably need to find the ci identification rule for each class and then update the criterion attribute of the identifier entry.
Hope this helps.
Please mark my answer correct and helpful if this resolves your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2022 09:15 AM
Hi ,
Thanks for your reply.
Any idea how or where we can call the IRE rules?
Example: Transform Script we can add these below to initiate a call to the CMDBTransformUtil()
but for Robust Transform , where we can add these scripts?
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {
var cmdbUtil = new CMDBTransformUtil();
cmdbUtil.identifyAndReconcile(source, map, log);
ignore = true;
})(source, map, log, target);