NS User
02/28/2025, 7:07 PMCeligo AI
02/28/2025, 7:07 PMAI generated answer (using internal Slack threads):Based on the conversations, it appears that as of NetSuite 2023.1, scheduled scripts no longer run automatically in a sandbox account after a refresh. This includes both scheduled scripts and map/reduce scripts. Instead, these scripts can be set up separately in a sandbox account. If you want to execute a script after a sandbox refresh, you could create a scheduled script that runs periodically but only if a script parameter is empty. Leave that parameter empty in production. When the sandbox is refreshed, the script runs at its scheduled time, sees the parameter is empty, does what it needs to do, and then sets that script parameter to a non-empty value so it stops executing from that point forward. You can also use
runtime.envType
or runtime.accountId
to ensure the script only runs in the sandbox.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
02/28/2025, 7:08 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847531796
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840215266
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834456503
Celigo AI
02/28/2025, 7:08 PM