Modules
SuiteScript 2.0
{url}.format({domain: {string*},params: {Object*}})
N/url Module
url.format()
Method Description:
Creates a serialized representation of an object containing query parameters.
Use the returned value to build a URL query string.
Returns:
URL as a string
Supported Script Types:
Client and server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/url Module
Since:
2015.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=url.format(options)
Example:
// Code Example 1
//Add additional code
//...
var output = url.format({
domain: 'http://fruitland.com',
params: {
fruit: 'grape',
seedless: true,
variety: 'Concord Giant',
PLU: 4272
}
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4358672703.html