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:

                                   
Note:

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

redirect.redirect(options)

void

Suitelets, beforeLoad user events, and synchronous afterSubmit user events

Redirects to the URL of a Suitelet that is available externally (available without login).

redirect.toRecord(options)

void

Suitelets, beforeLoad user events, and synchronous afterSubmit user events

Redirects to a NetSuite record.

redirect.toRecordTransform(options)

void

workflow action scripts

Redirects to a standard or custom transaction instance.

redirect.toSavedSearch(options)

void

afterSubmit user events

Redirects to a saved search.

redirect.toSavedSearchResult(options)

void

afterSubmit user events

Redirects to a saved search result.

redirect.toSearch(options)

void

afterSubmit user events

Redirects to search.

redirect.toSearchResult(options)

void

afterSubmit user events

Redirects to search results.

redirect.toSuitelet(options)

void

Suitelets, beforeLoad user events, and synchronous afterSubmit user events

Redirects to a Suitelet.

redirect.toTaskLink(options)

void

Suitelets, beforeLoad user events, and synchronous afterSubmit user events

Redirects to a tasklink.

Related Topics

SuiteScript 2.x Modules
SuiteScript 2.x

General Notices