Is there a way to lock records with SuiteScript like you can with a workflow?
Record locking is not supported in suitescript. You can try creating a workflow instead. You can try using N/workflow to trigger workflows if you really wanted to be suitescript driven.
Got it. Thanks!
I think I like this approach better than my own