There is no way to trigger the "Approve" event for...
# suitescript
x
There is no way to trigger the "Approve" event for Sales Orders from a Server side script, correct? I'm pretty sure from just testing and researching online/suiteanswers but just want to 100% confirm. I understand changing the order status from pending approval to pending fulfillment but that does not trigger an "approve" action. Big heartbreak because we have a quite a few user event scripts that are triggered on the "approve" action 🥲
w
you can catch that on afterSubmit by checking the record context oldRecord and newRecord’s order status changing from ‘A’ to ‘B’. That is the same as approve action.
☝️ 1
💯 1