Attaching files to transaction records using suitescript
Hello,
I would like to be able to attach/remove files from transaction records in Netsuite using SuiteScript. I have not had any problems getting the files that I want into Netsuite, but I cannot seem to figure out how I can attach those files to transactions in Netsuite using SuitteScript 2.0. Does anyone know how/if this can be done?
Should be able to attach it like this:
var id = record.attach({
record: {
type: ‘file’,
id: xmlfile
},
to: {
type: ‘fulfillmentrequest’,
id: createdfrom
}
});
Thanks! That looks like exactly what I need!