Transform Map is updating the Retired CIs

Rashmika BS
Tera Guru

We have an integration with third party tool where we received teh server updates. CMDB has duplicated server CIs which we have retired but teh inetegration is updating the retired records in most of the cases, I have created onbefore script to ignore the Retired ones but no go. Please suggest

2 REPLIES 2

Narsing1
Mega Sage

have you tried with CMDBTransformUtils.  This may be helpful to you.

CMDBTransformUtil Usage in Transform Maps 

 

Thanks,

Narsing

If we are using this CMDBTransformUtils, we cannot make any coalesce and the state of records in staging would show "ignored" even if there was an update or not. Ideally the iRE should avoid updating teh Retired CIs. OnStart transform script is also not working with the below.,

 

(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {

    // Add your code here
    if(target.install_status == 7){
        ignore = true;
    }

})(source, map, log, target);