Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Modifying Scheduled Script deployments in SuiteScript
I have a script that modifies several scheduled script deployments, setting them to deployed or un-deployed. We have the module that allows 5 scheduled script queues. The script should set deployments in the various queues to either deployed or un-deployed. I've had a few problems.
1) Creating new deployments throws an error. I have tried all three of:
nlapiCreateRecord('scriptdeployment');
nlapiCreateRecord('scriptdeployment',{'scriptid':'<numeric_id>'});
nlapiCreateRecord('scriptdeployment',{'scriptid':'<numeric_id>',queueid:'<queue_number>'});
These are throwing errors both server-side and client-side
2) Modifying a deployment re-sets the recurrence. I've tried setting the recurrence, too. I'm doing: