In a UE script, how do I go stopping an order crea...
# suitescript
s
In a UE script, how do I go stopping an order creation? in beforesubmit i do have a function check that throws an error and returns false thus ending the scope. but the code in aftersubmit still runs, where the .save .transform and loading happens so what happens, after throwing the error. the transaction continues to be saved
m
If your before submit is throwing an uncaught error, the record will not be saved
s
oh, this is what i used
m
you need to get rid of the
catch
s
thanks @michoel! i think that did it… changed catch to finally… not sure how to throw try without the catch