Does anybody know if it's possible to persist vari...
# suitescript
j
Does anybody know if it's possible to persist variables between different stages in a map/reduce script? Scenario: If have an item search that runs and I need to act differently on some items based on their internal ID. So, I've set a list of internal IDs as a parameter for the script and I'd like to be able to get that list in the getInputData stage and just use that variable in each map iteration to see if the item id is in that array of item IDs. I could get that parameter each time in the map stage, but the parameter will have a lot of item ids and I've got about 30,000 items that I'm mapping through, so it's probably not the most efficient. Is there a better way to do this?