Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Best way to store "Today" when running script that passes midnight
If I have a map/reduce script that may run for a long time or the user starts at 10pm and it runs past midnight and my script relies on "today" still being the date it was started, what has anyone done to accomplish storing this value? Cache does me no good as you can't rely on it being there Session variables do me no good as they don't last from phase to phase.
The cache states when using get:
The maximum duration, in seconds, that a value retrieved by the loader can remain in the cache. Note that the value may be removed before the ttl limit is reached.
0