How to have global variables in map/reduce scripts?
How to change a global variable inside one stage (e.g. map) and have that change available to a different stage (e.g. summary)?
b
battk
05/05/2020, 5:51 AM
different function invocation dont share the same script context. you cant use global variables to pass state
battk
05/05/2020, 5:51 AM
you can try something like storing your variable in a custom record or field
battk
05/05/2020, 5:52 AM
if you think netsuite wont clear the cache on you, you can try using N/cache
battk
05/05/2020, 5:55 AM
since you are interested in getting values in summary, you might be able to use the summaryContext to get the information you want.