Nour
09/16/2025, 1:39 PMCeligo AI
09/16/2025, 1:39 PMAI generated answer (using internal Slack threads):To redirect from a Suitelet to an external link in NetSuite, you can use a combination of SuiteScript and client-side JavaScript. Here's a general approach: 1. Create a Suitelet that generates a form. 2. Attach a client script to the form. 3. In the client script, use JavaScript to change the window location. Here's a simplified example:
javascript
// Suitelet
var form = serverWidget.createForm({
title: 'Redirect Form'
});
form.clientScriptModulePath = './ClientScript.js'; // Path to your client script
context.response.writePage(form);
javascript
// ClientScript.js
function pageInit(context) {
window.location.href = '<http://www.externalwebsite.com>'; // The external URL you want to redirect to
}
Please note that this is a simplified example and you may need to adjust it according to your specific requirements.
Also, if you want to access a Suitelet externally, you need to check the "Available without login" box on the Suitelet deployment page. The external URL will then show next to the internal URL.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
09/16/2025, 1:39 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854675353
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854248047
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.852600217
Celigo AI
09/16/2025, 1:39 PM