so let's say I'm parsing a csv that I passed into ...
# suitescript
d
so let's say I'm parsing a csv that I passed into the map stage, I never use reduce. At the end of the process (ie, the summary phase) I'd like to move that CSV file to a different folder to show it has been processed. How can I pass the internal ID of the file from getInputData to summarize? I guess I could always move the file in the getInputData stage, but not ideal
r
You can pass the file id to map for each map call and write file id in the object of context.write(itemId, object). This object can be accessed in summary stage