Discussions
How to get current Netsuite Domain
So,
Pretty simple ... I'm exporting some data and want to include a direct link back to the record that is exported.
Fair enough ... I use the url.ResolveRecord that returns me the 'relative' path to that record. I need the fully qualified link ...
Any suggestions how I get my 'current' netsuite domain? ie. system.sandbox.netsuite.com, system.na1.netsuite.com, etc
I'm in a RESTlet.
My thoughts
- look at the Customer Centre Login URL in the Company Information (but what if they don't have Company Information?
- make a custom Company Preference (but this seems overkill)
Thoughts anyone?