I'm dealing with a SS1.0 Scheduled Script that is ...
# suitescript
t
I'm dealing with a SS1.0 Scheduled Script that is having an error saving a sales order. Here is the actual code that is being run:
Copy code
var soRec = nlapiLoadRecord('salesorder',consoID);
        soRec.setFieldValue('promocode',promocode);
        try {
          nlapiSubmitRecord(soRec);
        } catch (error) {
          nlapiLogExecution('ERROR','Could not set promo code SO | ' + error.getCode(), error.getDetails());
        }