When you call a Map/Reduce script using the N/task...
# suitescript
t
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
You need to create parameters on the script record itself.
✔️ 1
t
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
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
Ahhh I see what you’re saying. I’ll give that a shot now, thanks!
That worked, thanks!