N/record.attach is probably what you are looking f...
# suitescript
c
N/record.attach is probably what you are looking for