RE: Formatting the domain of a Center Link to an internal NS resource for compatibility between Sandbox and Production environments

How do you format the domain of a Center Link pointing to an internal NetSuite resource so that the link works in both the Sandbox or Production environments?

mbrazil Rookie Asked on January 8, 2020 in SuiteBuilder.
Add Comment
1 Answers

I wonder if you could do this with a suit let page.

You would use the internal URL to the suitlet for the center link.

in the suitelet you would get the runtime.envType and redirect the url to correct pge

var runtimeEnv = JSON.stringify(runtime.envType);
if(runtimeEnv==="\"PRODUCTION\"")
   add redirect page1
....

else if(runtimeEnv==="\"SANDBOX\"")
   add redirect page2

Rookie Answered on May 26, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.