Modules

filter

 

Objects/Functions

module (N/https)

SuiteScript 2.0

ServerResponse.sendRedirect(options)

{ServerResponse}.sendRedirect({identifier: {number | string*},type: {string*},editMode: {boolean},id: {string},parameters: {object}})

N/https Module
ServerResponse.sendRedirect()
Method Description: Creates a redirect URL that resolves to a NetSuite resource. For example, you could use this method to redirect to a new sales order page for a particular entity.
Returns: void
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/https Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=ServerResponse.sendRedirect(options)

Example:

// Code Example 1
// Add additional code
//...
myServerResponseObj.sendRedirect({
type: https.RedirectType.RECORD,
identifier: record.Type.SALES_ORDER,
parameters: {entity: 8}
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4567653054.html