Hello! Has anyone created a server-side script tha...
# suitescript
b
Hello! Has anyone created a server-side script that directly downloads a file from the file cabinet to their local drive? Thanks!
g
I've also tried that before, I've tried every possible ways, but I found that it's impossible via script yet. sorry for no solution.
b
I guess it would only work for client side. Thank you for the response 🙂
g
My pleasure
r
It does require client side interaction to get to local storage. However, you can add the client script or button to execute the work server side using a user event before load entry point. Let me know if I need to explain better.
b
Yeah, that would work however, the client requires it to run on the backend. 😞
g
I really want to know if it's possible on server-side script
b
i was trying to use other libraries but they all run on the client side. 😞
r
You can import your own libraries as dependencies on the backed UE script if that helps. https://developers.suitecommerce.com/add-a-third-party-javascript-library-to-your-site.html
e
I used Go Lang to create a console app that downloads a list of files from the file cabinet. The caveat is that the files need to be available without login.
s
I use the SFTP SuiteApp to copy from FC to an SFTP server. Said server could be on a loal drive, or you could have another automation synch from SFTP>