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!
How to detect/introspect that you are in the sandbox
There are various variables in our suitescript that need to be different in the sandbox as compared to our real production environment. We talk to a third-party's service that uses a different URL for testing, for example. Does anybody have suggestions on how to detect that the script is running in the sandbox? After a sandbox refresh, everything is reset, so creating a dummy record as a flag won't work. Essentially, I'm trying to keep from having to manually go through a list of things to do after every refresh.
Tagged:
0