https://netsuiteprofessionals.com logo
Title
c

cja

03/05/2019, 10:04 AM
I have a file in the file cabinet available without login. How can I get the full absolute external url in SS2? file.url returns a relative url
l

Lea CC

03/05/2019, 10:13 AM
You could try this:
var host = url.resolveDomain({
			hostType: url.HostType.APPLICATION,
			accountId: runtime.accountId
		});
Then just append it with the relative URL.