Hi everyone. I set up a UE to capture the document...
# suitescript
n
Hi everyone. I set up a UE to capture the document status changes on AfterSubmit event, but when I alter the SO status thru clicking Approve button or selecting status = pending fulfillment, the status on
context.newRecord.getValue({fieldId: 'status'})
and `context.oldRecord.getValue({fieldId: 'status'})`are both old status - pending approval. Anyone got the same experience? Thanks
b
Try the orderstatus field
n
thanks battk. I tried and got the same result.😥
https://netsuite.custhelp.com/app/answers/detail/a_id/34736/kw/user%20event%20status found the answer from SuiteAnswer. Thank you to you all!!
b
im not surprised for the approve button
but changing the status field itself should have shown a changed value
n
Thank you battk. the field
status
doesn't work in the case any way. the field
orderstatus
works when selecting new status from dropdown list and save, and doesn't work when clicking on the approve button. you are right