jen
12/10/2019, 11:57 PMmyrecordtype) has a Workflow that runs some Set Field Value actions After Field Edit.
When I try to update my record with script, the Workflow seems to be throwing an error. Updating the record normally through the UI (or on the record in the console using SS1.0 nlapiSetFieldValue()) doesn't throw any errors.
Not sure where I am going wrong here.
My code to update the record looks like this:
var myrecord = record.load({type: 'customrecord_myrecordtype', id: 1637});
myrecord.setValue({fieldId: 'custrecord_myfieldname', value: 2});
myrecord.save();
``````