```???.setValue({fieldId: 'custwfstate_whatever', ...
# suitescript
j
Copy code
???.setValue({fieldId: 'custwfstate_whatever', value: myvalue});
s
Your context looks like this
Copy code
var exports = {};
    /**
    * @description Entry point for the Workflow Action
    * @param context {Object}
    * @param context.newRecord {Record} New record
    * @param context.oldRecord {Record} Old record
    * @return {*} Any value can be returned and utilized in workflow
    * @function onAction
    * @static
    **/
    exports.onAction = function onAction(context) {
        
    }
j
OK?
Not sure how that helps
b
nlapiSetFieldValue is equivalent to context.newRecord.setValue
j
yeah which is why I wasn't sure about how they want me to see a WF field's value
r
TIL, you can set workflow fields in custom workflow action scripts
j
I'm not convinced you can...
s
Yes you can, you get the record with context.newRecord, and set the values with that.
j
WORKFLOW fields. not fields on the record that the Workflow is running on.
message has been deleted
these fields