donaldtran
var environment = nlapiGetContext().environment; if (environment === 'SANDBOX') { //do stuff }