I'm using the following to try to pass a parameter...
# suitescript
d
I'm using the following to try to pass a parameter to my map/reduce, but it doesn't appear to be picking it up on the
getParameter
. Any ideas: Suitelet:
Copy code
var mrTask = task.create({
            taskType: task.TaskType.MAP_REDUCE,
            scriptId: 'customscript_rp_mrp_generator_mr',
            deploymentId: 'customdeploy_rp_mrp_generator_mr'
        });
        mrTask.params = {
            'custscript_forecastid': newForecastId
        };
Map/Reduce:
Copy code
var script = runtime.getCurrentScript();
    var newForecastId = script.getParameter({
        name: 'custscript_forecastid'
    });