Sim Greenbaum
01/13/2022, 3:33 PMvar id = fulfillmentRecord.save();
log.debug({ title: "fulfillid", details: id });
return id
Shawn Talbert
01/13/2022, 3:36 PMreduce
in order to get all the map
errorsSim Greenbaum
01/13/2022, 3:39 PMSim Greenbaum
01/13/2022, 3:39 PMShawn Talbert
01/13/2022, 3:43 PMmap
throws an exception it should automatically make its way to the mapSummary
Shawn Talbert
01/13/2022, 3:43 PMSim Greenbaum
01/13/2022, 3:44 PMSandii
01/13/2022, 4:02 PMSandii
01/13/2022, 4:03 PMSim Greenbaum
01/13/2022, 4:04 PMSandii
01/13/2022, 4:10 PMSim Greenbaum
01/13/2022, 4:15 PMShawn Talbert
01/13/2022, 4:16 PMShawn Talbert
01/13/2022, 4:17 PMSim Greenbaum
01/13/2022, 4:17 PMSim Greenbaum
01/13/2022, 4:19 PMSim Greenbaum
01/13/2022, 4:25 PMSim Greenbaum
01/13/2022, 4:26 PMfunction getInputData() {
day = new Date().getDay();
if (day == 0 || day == 6) {
log.debug(day, "skipped");
} else {
//step 1 pull int the data from saved search
return search.load({
id: 1271,
});
}
}
/**
* Executes when the map entry point is triggered and applies to each key/value pair.
*/
function map(context) {
var data = JSON.parse(context.value);
scottvonduhn
01/13/2022, 4:51 PMlog.debug({ title: context.key, details: context.value });
scottvonduhn
01/13/2022, 4:52 PMSim Greenbaum
01/13/2022, 5:06 PMscottvonduhn
01/13/2022, 5:10 PMSim Greenbaum
01/13/2022, 5:10 PMscottvonduhn
01/13/2022, 5:11 PMscottvonduhn
01/13/2022, 5:12 PMSim Greenbaum
01/13/2022, 5:14 PMSim Greenbaum
01/13/2022, 5:14 PMvar recordId = objRecord.save
battk
01/13/2022, 6:13 PMscottvonduhn
01/13/2022, 7:06 PM