Is there a way to send files in netsuite through a...
# suitescript
t
Is there a way to send files in netsuite through an api that's written in a suitelet?
w
Do you mean send files in to netsuite, or out of netsuite to a different system?
t
Sending a file out of netsuite
w
It will depend on the API. If it is a basic one, you may be able to use the N/http post method.
More complicated authentication might require a bespoke authentication procedure or the use of the N/sftp module.
t
Yeah im trying to do it outside the sftp module. The API can receive files but netsuites https module doesn't accept the “application/form-data” content-type header