try this: if (runtime.envType == "SANDOX")
# suitescript
n
try this: if (runtime.envType == "SANDOX")