Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Call a Suitelet from another Suitelet
I have a number of suitlets that i want call from another suitlet. Is this actually possible?
For example i want to update a custom record with different types of data sets. Each data set is triggered from individual suitescritpts and I have a main scheduled script that calls these scripts. The code below is from my initial main script calling all my other suitscripts.
Is this possible as it seems to skip the scripts at the beginning and executes the last script instead
function main() { nlapiSetRedirectURL('SUITELET', 43, 1, null); //deleteRecords() nlapiSetRedirectURL('SUITELET', 38, 1, null); //updateTimeRecords() nlapiSetRedirectURL('SUITELET', 39, 1, null); //updateCaseRecords() nlapiSetRedirectURL('SUITELET', 41, 1, null); //updateCaseTaskRecords() nlapiSetRedirectURL('SUITELET', 42, 1, null); //updateTaskJobRecords() } 0