When you call a Map/Reduce script using the N/task createTask() method and pass in a task.params property, how do you access that within the M/R script itself?
s
Sandii
09/16/2020, 8:13 PM
You need to create parameters on the script record itself.
✔️ 1
t
Tyler
09/16/2020, 8:21 PM
I need to set the parameters dynamically, so I’m using N/task’s createTask and using the params property to dynamically pass a parameter forward
s
Sandii
09/16/2020, 8:22 PM
Yeah you just have to create the definition of parameter itself on the script, then it can be read using the methods the others posted in the channel
t
Tyler
09/16/2020, 8:25 PM
Ahhh I see what you’re saying. I’ll give that a shot now, thanks!