FYI — If a record is locked, executing currentReco...
# suitescript
s
FYI — If a record is locked, executing currentRecord.get() in a client script returns ‘undefined’ for any getValue() calls. Workaround is to use search.lookupFields… 😕
u
I think there is a context for Client Script which you could exclude from your workflow execution context. Doing lookup would consume usage units and add some milliseconds to the processing
👍🏼 1
s
@クリスピポテト circling back… I tried updating the workflow to lock the record only in the UI, and client script was not selected, but currentRecord.get still returns undefined for all field values. — lookupFields is the only option :/