Modules
Objects/Functions
SuiteScript 2.0
http.RedirectType.{|MEDIA_ITEM,RECORD,RESTLET,SUITELET,TASK_LINK|}
N/http Module
http.RedirectType
Enum Description:
Holds the string values for supported NetSuite resources that you can redirect to. This enum is used to set the value of the type argument for ServerResponse.sendRedirect(options).
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/http Module
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=http.RedirectType
Example:
// Code Example 1
// Add additional code
//...
myServerResponseObj.sendRedirect({
type: http.RedirectType.RECORD,
identifier: record.Type.SALES_ORDER,
parameters: {entity: 6}
});...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1492804577.html