I have a call to nlapiAttachRecord to attach a file to a custom record in a suitelet, and got "You do not have permission to perform this operation.".
It works fine when "run as admin", but fails when running under a regular role.
What permission is needed?
Thanks,