Hello, how do schedule a Map/Reduce script to run ...
# suitescript
h
Hello, how do schedule a Map/Reduce script to run on the last day of the month every month? I'm not seeing an option under Schedule. TIA
m
Couple of ways that I can think of: • Schedule it to run every day and use code to check if it is the last day in the getInputData() function. If not, return with no data. • Create 12 separate deployments, 1 for the last day of each month and schedule them to recur yearly.
thanks 1
b
the second option given probably needs special attention on feb 29
āœ… 1
h
Thanks @Mike Robbins I went with the first option and it works like a charm šŸ™‚