Hello Guys, How we can download the FileCabinet fi...
# suitescript
a
Hello Guys, How we can download the FileCabinet files in the local system using SuiteScript 2.0 if I have the file id? Thanks!
s
Not sure what you mean by download them with suitescript, have you looked into sdf?
a
How we can download any netsuite file in local system?
s
You need to explain the context of what you are trying to do. What is triggering this download? What have you tried to do?
a
@Sandii Currently I am trying to download the file using Client Script 2.0. I have file internal id but don't how I download that file in local system
s
Client scripts do not have access to
N/file
. Assuming this is on some button click, you can have your client script call a suitelet and have the suitelet return the file
a
I want to download pdf file in the field "AV40 LABEL PDF"
s
What is triggering the download though, a button?
If that is the case I would try 1 Add button with User Event 2 Button has function on client script 3 Client script pings suitelet 4 Suitelet returns the file with a
ServerResponse.writeFile
1
a
Okay... Thanks... Let me work on this