you probably want to use the N/currentRecord modul...
# suitescript
c
you probably want to use the N/currentRecord module and do something like var thisRecord = currentRecord.get() then do your record.load using thisRecord.type/id etc..