redirect.toSavedSearch(options)

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Loads an existing saved search and redirect to the populated search definition page.

Returns

void

Supported Script Types

afterSubmit user event scripts

For more information, see SuiteScript 2.x User Event Script Type.

Governance

5 units

Module

N/redirect Module

Since

2015.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.id

number

required

Internal ID of the search.

The internal ID is available only when the search is either loaded with search.load(options) or after is has been saved with Search.save().

Typical values are 55 or 234 or 87, not a value like customsearch_mysearch. Any ID prefixed with customsearch is a script ID, not the internal system ID for a search.

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/redirect Module Script Sample.

          //Add additional code 
...
redirect.toSavedSearch({
    id: 234
});
...
//Add additional code 

        

Related Topics

N/redirect Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices