Modules
SuiteScript 2.0
{url}.resolveScript({deploymentId: {string*},scriptId: {string*},params: {Object},returnExternalUrl: {boolean}})
N/url Module
url.resolveScript()
Method Description:
Returns an external or internal URL string to a script.
Returns:
The URL as a string
Supported Script Types:
All 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.resolveScript(options)
Example:
// Code Example 1
//Add additional code
//...
var output = url.resolveScript({
scriptId: 'custom_script',
deploymentId: 'custom_script_deployment',
returnExternalUrl: true
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4358672433.html