You need `currentRecord.get().id`
# suitescript
e
You need
currentRecord.get().id