N/url Module

Use the N/url module to determine URL navigation paths within NetSuite and format URL strings.

                                   

In This Help Topic

N/url Module Members

Member Type

Name

Return Type / Value Type

Supported Script Types

Description

Method

url.format(options)

string

Client and server scripts

Converts (serializes) URL query parameters into a string.

url.resolveDomain(options)

string

Client and server scripts

Returns a domain name for a NetSuite account.

url.resolveRecord(options)

string

Client and server scripts

Returns an internal URL to a NetSuite record.

url.resolveScript(options)

string

Client and server scripts

Returns an external or internal URL to a script.

url.resolveTaskLink(options)

string

Client and server scripts

Returns an internal URL for a tasklink.

Enum

url.HostType

enum

Client and server scripts

Holds the string values that describe a category of domain name. Use this enum to set the value of the hostType parameter of the url.resolveDomain(options) method.

Related Topics

General Notices