I am trying to call a Map/Reduce Script from a RES...
# integrations
a
I am trying to call a Map/Reduce Script from a RESTlet using
task.Create()
. I am getting an error that
scriptId
is missing. Here is that code where I'm trying to call it. I've tried both string and numeric id's. No luck:
Copy code
var mapReduceScriptTask = task.create({
    taskType: task.TaskType.MAP_REDUCE,
    scriptID : 'customscript_transaction_bulk_update',
    deploymentId : 'customdeploy_transaction_bulk_update',
    params : {
        "custscript_requestbody" : request['recList']
    }
});
b
scriptId
vs
scriptID
a
ahhhh.... couldn't see the forest for the trees. Thanks... that was it!