-
Sent a PDF file on API call
Hi Team, I am currently working on integrating NetSuite with another system, and I need to send a file through an API call(post method). In Postman, I am able to directly upload the file using the form-data method and the file is received and created in the other system without any issues. But, when I tried to achieve the…
-
How to fix blank PDF file sent using https.put in a SuiteScript?
Hi, I am new to suitescript and want to implement https.put() to upload a binary file (pdf, docx, image) based on either the file_id from file cabinet or actual file selected by user from his/her computer to upload. In any case, currently when I upload a pdf, a blank pdf is created on the target server. Could you please…
-
application/pdf cant read
I have the body below and I'm trying to save it to a file using the N/file module in NetSuite, but with no success. Has anyone ever experienced this?
-
How to use N/file from custom module library
we are trying to use the N/file module for creating files from a custom library. we have set the @NModuleScope Public property, but we receive the Unexpected Error and we are unable to create the file.
-
What is the Best practice to format the file ?
Hi Team, To send the file through an API call, what is the best practice: to convert/format the file as binary or base64? Also, will NetSuite support sending the file in binary format?
-
How to export, create .XLSX file in the script logic?
No matter what I tried, the NS exported only .XLS format excel file in my script. Is there any solution to export .XLSX Excel? Best Regards,
-
How to create a csv file when a custom button is triggered?
I have a need (now and again) to export the sales order items to a CSV file. I thought I resolved it with the N/file module and then released its only server side! I created a button on the items sublist "Export Items to CSV" to do this. I did play around with using a suitelet, but i've never done this before and dont know…