<@UCBRT48KA> you can use `N/url.resolveDomain`
# suitescript
m
@Wolf you can use
N/url.resolveDomain
w
I looked into that but the URL of the file is like 'system.na0.netsuite.com' and resolveDomain gives me '1234567-sb1.app.netsuite.com'
Which seems to work right now but I wasn't sure if that would change in the future
m
the ‘system.na0.netsuite.com’ addresses are on the way out as i understand it. account specific urls like those returned from N/url are the new ‘way’.
w
OK, that makes sense. Thanks!
m
no problem!