PreMap hook to convert EDI JSON to objects in order to map

function preMap(options) {  const result = options.data.map(function(record) {   const errors = [];   const formattedRecord = {};   // Existing mappings   formattedRecord.syntaxIdentifier = record[“SYNTAX IDENTIFIER”] && record[“SYNTAX IDENTIFIER”][“Syntax identifier”] ? record[“SYNTAX IDENTIFIER”][“Syntax identifier”] : null;   formattedRecord.syntaxVersionNumber = record[“SYNTAX IDENTIFIER”] && record[“SYNTAX IDENTIFIER”][“Syntax version number”] ? record[“SYNTAX IDENTIFIER”][“Syntax version number”] : null;   formattedRecord.sender = record[“INTERCHANGE SENDER”] && record[“INTERCHANGE… Continue reading PreMap hook to convert EDI JSON to objects in order to map

Pre Map hook in Celigo

Pre map The premap hook is invoked on a page of records before the records are mapped from source to destination structures. This hook can be used to validate, update, or ignore records before mapping rules are run. Changes made to records in this hook are localized and will not get passed along to subsequent steps… Continue reading Pre Map hook in Celigo