1

I'm able to get transaction internal id by suitetalk api, but it doesn't have API to get transaction in PDF format.

Would anyone help me in this case?

1 Answers1

1

Here is an example of the email.send to attach a file. I don't currently have a NetSuite account to log into, but the 2.0 code below is an example of the email.send module that you can use to email the record(s). If you search that in the NS docs, you'll find more examples, as well.

email.send({
  author:emailAudthorNSID, 
  recipients:emailRecipientNSID, 
  subject:'Example email subject', 
  body:'Example Email Body', 
  relatedRecords:{
    transactionId:transactionRecordToAttach
  }
});
w3bguy
  • 2,215
  • 1
  • 19
  • 34
  • I think that's just going to add the email to the Communication tab of the transaction, not actually attach the PDF of the transaction to the email, right? – user2233949 Oct 17 '22 at 15:54