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 |
|
Since |
2017.1 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The type of domain name you want to retrieve. Set this value using the url.HostType enum. |
2017.1 |
|
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
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