From a suitelet page, to redirect to a record, use the below code: scriptContext.response.sendRedirect({ type: https.RedirectType.RECORD, identifier: CUSTOM_REC_IDS.eWayBillIRNRec, id: eWayBill.internalId }); 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… Continue reading Redirect to a record from the suitelet page
Tag: suitelet redirection
How to Use response.sendRedirect in NetSuite SuiteScript
How to Use `response.sendRedirect` in NetSuite SuiteScript Overview: In NetSuite SuiteScript, the `response.sendRedirect` function allows developers to redirect users to a specific page, record, or script within NetSuite. This is particularly useful when you want to guide users to a different location after they perform certain actions in a Suitelet or RESTlet. Syntax: javascript response.sendRedirect({… Continue reading How to Use response.sendRedirect in NetSuite SuiteScript