Hi Gurus,
We have a SuiteScript 2.1 integration that switches its external API endpoint based on runtime.envType: only when runtime.envType === runtime.EnvType.PRODUCTION does it call the production endpoint; any other value falls back to the staging endpoint.
The help page for runtime.EnvType lists four values: SANDBOX, PRODUCTION, BETA and INTERNAL.
However, the documentation does not say which value a Release Preview account returns.
Questions:
- In a Release Preview account, what does runtime.envType return? (BETA, SANDBOX, or PRODUCTION?)
- Is there an official mapping between account types (Production, Sandbox, Release Preview, Development / SDN accounts, trial accounts) and runtime.EnvType values?
- In which accounts or situations are BETA and INTERNAL returned? For example, is BETA used for Release Preview accounts, and is INTERNAL only used for Oracle NetSuite internal accounts?
Our concern is that if a Release Preview account returns "PRODUCTION", tests run there during the release preview period would call the production endpoint of the external service.
Thank you in advance.
AI disclaimer: This question was drafted with the help of an AI assistant and reviewed by us before posting.