This topic contains 2 replies, has 0 voices, and was last updated by erictgrubaugh 7 years ago.

  • Author
    Posts
  • #18152

    northern_brewer

    I have a 2.0 scheduled script that integrates with Bronto, for sending transactional emails.

    I *never* want this script firing off emails in the Sandbox. Under 1.0, I know you could call nlapiGetContext().getEnvironment() — what is the 2.0 equivalent?
    This is a cached copy. Click here to see the original post.

  • #18153

    northern_brewer

    Derp — I can answer my own question.

    Just check runtime.EnvType — log.debug(“Environment for current user: ” + JSON.stringify(runtime.envType));

  • #18154

    erictgrubaugh

    FWIW Sandbox should not send external emails anyway. You can configure how your Sandbox handles emails by going to Setup > Company > Email Preferences and navigating to the “Sandbox and Release Preview” tab.

You must be logged in to reply to this topic.