Hello, whats the best way to convert a scheduled s...
# suitescript
p
Hello, whats the best way to convert a scheduled script for 2.0 into a map/reduce script?
s
I can help you with that... You have to think about how the data is being processed and how to scale the processing horizontally.
s
It isn't a simple copy/paste, the map/reduce is a functional change to the way you are processing whatever data you are processing.
s
@Sandii on the other hand, If you wanted to get dirty you could also run the whole thing inside of the getInputData() and always return an empty array. It is the same governance as a scheduled script, and if there aren't any problems in the previous one... Of course that wouldn't take advantage of the processors..
p
got it. I am looking to loop through the saved search and use the values from the search but I have not done a map/reduce script before
s
@Phillip yes, MR scripts require some additional thinking...
Easiest would be to jump on a zoom for some show and tell.
p
ok
I figured it out
👍🏼 1