Is there a way to send files in netsuite through an api that's written in a suitelet?
w
Webber
12/03/2021, 1:51 PM
Do you mean send files in to netsuite, or out of netsuite to a different system?
t
Temitope Pinheiro
12/03/2021, 1:57 PM
Sending a file out of netsuite
w
Webber
12/03/2021, 2:27 PM
It will depend on the API. If it is a basic one, you may be able to use the N/http post method.
Webber
12/03/2021, 2:29 PM
More complicated authentication might require a bespoke authentication procedure or the use of the N/sftp module.
t
Temitope Pinheiro
12/03/2021, 2:32 PM
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