N/redirect Module
Use the N/redirect module to customize navigation within NetSuite by setting up a redirect URL that resolves to a NetSuite resource or external URL. You can redirect users to one of the following:
-
URL
-
Suitelet
-
Record
-
Task link
-
Saved search
-
Unsaved search
Suitelets, beforeLoad user events, and synchronous afterSubmit user events are supported. This module does not support beforeSubmit or asynchronous afterSubmit user events. This module is only supported when triggered from the UI. Backend contexts such as CSV Import and Scheduled Scripts are not supported.
In This Help Topic
N/redirect Module Members
Member Type |
Name |
Return Type |
Supported Script Types |
Description |
---|---|---|---|---|
Method |
void |
Suitelets, beforeLoad user events, and synchronous afterSubmit user events |
Redirects to the URL of a Suitelet that is available externally (available without login). |
|
void |
Suitelets, beforeLoad user events, and synchronous afterSubmit user events |
Redirects to a NetSuite record. |
||
void |
workflow action scripts |
Redirects to a standard or custom transaction instance. |
||
void |
afterSubmit user events |
Redirects to a saved search. |
||
void |
afterSubmit user events |
Redirects to a saved search result. |
||
void |
afterSubmit user events |
Redirects to search. |
||
void |
afterSubmit user events |
Redirects to search results. |
||
void |
Suitelets, beforeLoad user events, and synchronous afterSubmit user events |
Redirects to a Suitelet. |
||
void |
Suitelets, beforeLoad user events, and synchronous afterSubmit user events |
Redirects to a tasklink. |