Modules

filter

 

Objects/Functions

module (N/https)

SuiteScript 2.0

https.RedirectType

https.RedirectType.{|MEDIA_ITEM,RECORD,RESTLET,SUITELET,TASK_LINK|}

N/https Module
https.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/https Module
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=https.RedirectType

Example:

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

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