redirect.toSavedSearchResult(options)
Method Description |
Redirects a user to a search results page for an existing saved search. |
Returns |
void |
Supported Script Types |
afterSubmit user event scripts For more information, see SuiteScript 2.x User Event Script Type. |
Governance |
5 units |
Module |
|
Since |
2015.2 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
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 |
Syntax
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.toSavedSearchResult({
id: 234
});
...
//Add additional code