Sim Greenbaum
08/04/2022, 6:40 PMvar id = fulfillmentRecord.save();
battk
08/04/2022, 6:43 PMMarvin
08/04/2022, 6:54 PMSim Greenbaum
08/04/2022, 7:10 PMSim Greenbaum
08/04/2022, 7:11 PMvar id = fulfillmentRecord.save();
}
}
function summarize(summary) {
let data = "";
let amount = "";
let errors = "";
summary.mapSummary.errors
.iterator()
.each(function (key, error, executionNo) {
var errorObject = JSON.parse(error);
log.error({ title: "fulfilerrors", details: errorObject });
amount += 1;
errors += `<td>${amount}</td><td> ${errorObject.name} </td > <td> ${
errorObject.message || "No Meaningful message"
} </td >`;
return errors;
});
var date = new Date().toISOString().substring(0, 10);
var time = `Total Seconds: ${summary.seconds}`;
var minutes = Math.floor(time / 60);
var subject = `>The fufil script ran for ${minutes} min ${JSON.stringify(
summary.inputSummary.usage
)} were created ${summary.usage}`;
var info = ` <tr>${error}</tr>`;
Marvin
08/04/2022, 7:14 PMMarvin
08/04/2022, 7:17 PMN/render
module. You can use an object or array to be able to populate data within a template.Sim Greenbaum
08/04/2022, 7:18 PMMarvin
08/04/2022, 7:47 PMSim Greenbaum
08/04/2022, 8:18 PMMarvin
08/04/2022, 8:19 PMSim Greenbaum
08/04/2022, 8:20 PMSim Greenbaum
08/04/2022, 8:21 PMMarvin
08/04/2022, 8:21 PMMarvin
08/04/2022, 8:23 PMMarvin
08/04/2022, 8:24 PMRECORD_HAS_CHANGED
error which is temporary. Then you can only throw the error on say the 2nd retry.