We have a Workflow that runs every 30 minutes. Wor...
# general
m
We have a Workflow that runs every 30 minutes. Workflow is fed by a saved search (Sales Order that are Pending Billing and Balance due = 0) Only State in WF is Transform Record on Entry - which creates a Cash Sale from each S/O. This wf also updates CreditCard Approved = T. I'm trying to build a separate Cash Sale Workflow, triggered on CREATE that triggers a Workflow Action Script (currently set to Before Record Submit)
Copy code
function CS_PNRefUpdate(){
var pnref = nlapiGetFieldValue('custbody_pnref');
nlapiSetFieldValue('pnrefnum', pnref); }
Script is solely trying to get value of a custom field and update the
pnref
field on the Cash Sale. Issue I'm running into is that the workflow action script isn't updating the
pnref
field and i'm getting this error: Credit Card Number or P/N Ref. has to be set to record external payment event. So any help on what I could change to get this to work would be appreciated.