Luiz Anjos
07/25/2019, 11:29 PMcontext.oldRecord
and the context.newRecord
both has the same status like ‘Pending Approval’ even when I click on Approve button. So I thought the way to know it was changing the status was by adding a condition like context.type == context.UserEventType.APPROVE
now it works when user clicks on the button, but if they edit the sales order and change the status drop down it allows to save. Has anyone faced something similar to this?