Discussions
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: