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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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