while we are on the subject I just wrote ```if(run...
# suitescript
j
while we are on the subject I just wrote
Copy code
if(runtime.envType === 'SANDBOX'){
                    itemImage = '<https://xxxxxxxxxxx-sb1.app.netsuite.com/>' + itemInfo.storedisplayimage[0].text;
                    templateId = '9537'
                }else{
                    itemImage = '<https://system.na3.netsuite.com/>' + itemInfo.storedisplayimage[0].text;
                    templateId = '9538'
                }
b
use N/url and url.resolveDomain
j
@battk, Ah... I figured there was a module. Thanks.