I'd rather not have to retrieve the external datas...
# suitescript
k
I'd rather not have to retrieve the external dataset for each map result.
s
@Kris Wood try using the N/cache module
b
no globals, the entry points run in different contexts
cache is an option if you believe that netsuite wont clear the cache on you
otherwise you can do things like write the dataset as part of the value or store the dataset somewhere else in netsuite and load the data each time
k
I'll look up the cache idea, thanks!
Is there a character limit on cache values?
nm 500KB
Ugh, large dataset doesn't work well with cache, apparently
Found a way around it. Just had to key each cache variable off a unique identifier that exist on both the NetSuite side and the external API side