You should be processing your record in `reduce`. ...
# suitescript
e
You should be processing your record in
reduce
. In general the phases of a M/R should be used like:
Copy code
getInputData: retrieve all necessary data for processing
map: [optional] group search results by relevant dimension(s) (e.g. group Invoices by Customer)
reduce: do actual processing (create/update/delete records)
summarize: [optional] send out emails stating the process is done
👍 1