Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Map Reduce Script failing to create record
Hi There
I am trying to use a map reduce script to create a sales order record using the values from a saved search
The script appears to work correctly until it gets to the reduce stage.
There, all of the log debug parts of the script return a value other than the last one of :
if (salesOrderId) {
log.debug("Sales Order ID", salesOrderId);
} else {
log.debug("Failed to create Sales Order");
This does not log anything at all
The rest of the script
* @param {MapReduceContext.reduce} context
*/
function reduce(context) {
log.debug("reduce context", context);
var values = context.values;