Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

CMDBTransformUtil Usage in Transform Maps when new CI created but no records insert in Object Source

yuanji
Tera Contributor

Hi Expert:

I was implementing IRE using Transform Maps,in the onBefore and scripts:

 

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

var cmdbUtil = new global.CMDBTransformUtil();
cmdbUtil.setDataSource('UCMDB'); //This is the name you added in the step above.
cmdbUtil.identifyAndReconcileEnhanced(source, map, log);
ignore = true;

if (cmdbUtil.hasError()) {
        var errorMessage = cmdbUtil.getError();
        log.error(errorMessage);
        error = true; // Update the import row to show the error
        error_message = errorMessage;
} else {
        log.info('IE Output Payload UCMDB: ' + cmdbUtil.getOutputPayload());
        log.info('Imported CI UCMDB: ' + cmdbUtil.getOutputRecordSysId());
        target.get(cmdbUtil.getOutputRecordSysId());
}

})(source, map, log, target);
 
I excuted TM with all new records created in the destination: cmdb_ci_esx_server table , but IRE doesn't create records into the Object Source [sys_object_source].
 
can someone help?
0 REPLIES 0