Have you checked whether it's supported by nlapiAt...
# suitescript
i
Have you checked whether it's supported by nlapiAttachRecord?