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?

Rookie Asked on October 1, 2019 in SuiteScript.
Add Comment
1 Answer(s)

Should be able to attach it like this:

     var id = record.attach({
                record: {
                    type: ‘file’,
                    id: xmlfile
                },
                to: {
                    type: ‘fulfillmentrequest’,
                    id: createdfrom
                }
            });

 

Beginner Answered on October 1, 2019.

Thanks! That looks like exactly what I need!

on October 1, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor