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
Philip Denys
11/07/2022, 9:13 AM
i would think locking happens in the creation of suitebundles
b
battk
11/07/2022, 9:48 AM
locking records is workflow thing, not a suitescript action
battk
11/07/2022, 9:49 AM
you may be able to use workflow.trigger on an existing workflow that locks (and hopefully unlocks) the record
s
Sean Hayes
11/07/2022, 4:49 PM
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’