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

Community Alums
Not applicable

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 

 

 

2 REPLIES 2

Sean Walters
Tera Expert

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.

Community Alums
Not applicable

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);