RyanM-02
02/08/2025, 11:21 PMCeligo AI
02/08/2025, 11:22 PMAI generated answer (using internal Slack threads):In SuiteScript 2.1, you can use the
N/redirect
module to redirect to a new transaction form. Here is a sample code snippet:
javascript
var redirect = require('N/redirect');
function redirectToNewTransactionForm() {
redirect.toRecord({
type : record.Type.SALES_ORDER,
id : 1,
isEditMode: true
});
}
In this example, the user is redirected to the edit mode of the Sales Order record with ID 1. You can replace record.Type.SALES_ORDER
and 1
with the type and ID of the transaction form you want to redirect to.
******
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
02/08/2025, 11:22 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84220314
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833996594
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825119793
Celigo AI
02/08/2025, 11:22 PM