Search code examples
netsuitesuitescriptsuitescript2.0suitescript1.0

schedule a map reduce script progrmatically


Has anyone wrote any code to modify a script deployment through suitescript ? I am trying to load and set the start date and start time for a map reduce script but its not working

var record2= nlapiLoadRecord('scriptdeployment', id, {recordmode: 'dynamic'});
record2.setFieldValue('status' , 'SCHEDULED');
record2.setFieldValue('startdate' , new Date());
record2.setFieldValue('starttime' , 1100);
nlapiSubmitRecord(record2,true);

Solution

  • The deployment records are not scriptable.