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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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