im trying to pass parmas from a retlet to mard red...
# suitescript
s
im trying to pass parmas from a retlet to mard reduce task it doesnt seem to be working / blank indefinded
Copy code
let mrTask = task.create({
        taskType: task.TaskType.MAP_REDUCE,
        scriptId: ****,
        deploymentId: ****,
        params: {
          custscriptinput: id,
        },
      });
shouldnt this give me the params
Copy code
var searchid = runtime
      .getCurrentScript()
      .getParameter({ name: "custscriptinput" });
d
I forget if this is entirely the case - but I feel like you have to create actual (text) script params on the script/deployment definition itself first - and then you can pass/retrieve custom param values
s
right i forgot about that