Modules
Objects/Functions
SuiteScript 2.0
{redirect}.toSuitelet({scriptId: {string*},deploymentId: {string*},isExternal: {boolean},parameters: {Object}})
N/redirect Module
redirect.toSuitelet()
Method Description:
Method used to redirect the user to a Suitelet.
For more information about Suitelets, see SuiteScript 2.0 Suitelet Script Type.
The redirect happens after the script finishes.
Returns:
Void
Supported Script Types:
Suitelets, beforeLoad user events, and synchronous afterSubmit user events
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/redirect Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=redirect.toSuitelet(options)
Example:
// Code Example 1
//Add additional code
//...
redirect.toSuitelet({
scriptId: 31 ,
deploymentId: 1,
parameters: {'custparam_test':'helloWorld'}
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4424988773.html