Hello Can we lock a record with SuiteScript 2.x? I...
# suitescript
b
Hello Can we lock a record with SuiteScript 2.x? I couldn't find any function to lock the record in
n/record
module
p
i would think locking happens in the creation of suitebundles
b
locking records is workflow thing, not a suitescript action
you may be able to use workflow.trigger on an existing workflow that locks (and hopefully unlocks) the record
s
I’ve only ever seen it on workflows. Lock is usually a beforeLoad event in a workflow. so calling locks, then on another load you would not need to unlock if you didn’t ‘lock’
b
Thank you