i tried to do it even from a user event but it doe...
# suitescript
m
i tried to do it even from a user event but it does not get persisted
t
It should. I have a UE that changes a timebill back to pending approval if its edited after its approved
m
what do you mean?
that there is no way to reverse approval by code?
r
Did you check if there is a workflow on the record? It might be resetting the status back to whatever the value is for that state
m
i will check it out but are you saying that if no workflow is set I should be able to change the status back by code ?
there are no workflows or anything
it is weird
i cannot set approval to rejected or pending approval
i get no errors but then the status is back to what it had
from the UI though I can set it from pending to reject ed or appoved, regular path
this other scenario is excpetional