Modules

filter

 

Objects/Functions

module (N/url)

SuiteScript 2.0

url.HostType

{url}.HostType{APPLICATION: {The domain for UI access.},FORM: {The domain for forms hosted online, usually in Suitelets.},RESTLET: {The domain for calling a RESTlet from an external source.},SUITETALK: {The domain for SOAP web services requests.}})

N/url Module
url.HostType
Enum Description: Enumeration whose string values each describe a category of domain name. This enum is used to set the value of the hostType parameter of the url.resolveDomain(options) method.
Type: enum
Supported Script Types: All server and client scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/url Module
Since: 2017.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=url.HostType

Example:

// Code Example 1
//Add additional code
//...
var output = url.resolveDomain({
hostType: url.HostType.APPLICATION,
accountId: '012345'
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4834765371.html