Hello, any ideas how to know with suitescript if y...
# suitescript
t
Hello, any ideas how to know with suitescript if you are in Sanbbox 1 or Sandbox 2 ?
Copy code
var environment = runtime.envType;
only returns SANDBOX for both. thanks
n
never tried but have you looked at the accountid instead, maybe that includes more than just the numeric part? If you're in client script you could look at the url...
t
ah perfect, it returns : xxx_SB2 . thanks a lot
👍 1