url.resolveDomain(options)

Method Description

Returns a domain name for a NetSuite account.

Returns

string

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Governance

None

Module

N/url Module

Since

2017.1

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.hostType

string

required

The type of domain name you want to retrieve. Set this value using the url.HostType enum.

2017.1

options.accountId

string

optional

The NetSuite account ID for which you want to retrieve data. If no account is specified, the system returns data on the account that is running the script.

You can find the account ID at Setup > Company > Company Information in the Account ID field.

2017.1

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/url Module Script Samples.

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

        

Related Topics

General Notices