Discussions
Will a custom workflow action script trigger user events?
Hi all,
We have a scheduled workflow running with a single state and a single custom action.
From what I understand, this action should run similar to a beforeSubmit user script.
Custom Workflow Action Script:
var rec = nlapiGetNewRecord();
rec.setFieldValue('shipdate', SOME_VALUE);
This does successfully modify the record but does not seem to trigger any user event scripts on the record.
Is this intended behavior? If so, is there a way to get user events scripts to trigger on the record?
Maybe we could change the field with nlapiSubmitField() or load the record again with nlapiLoadRecord()
Thanks