Join Slack
Powered by
Hi All, 1. Can a RESTlet receive a CSV file and st...
# suitescript
s
SMNCP
09/09/2021, 3:18 PM
Hi All, 1. Can a RESTlet receive a CSV file and store in the file cabinet? 2. If yes, what is the maximum file size limit using RESTlet?
b
battk
09/09/2021, 3:24 PM
SuiteScript 2.x RESTlet Governance
s
SMNCP
09/09/2021, 3:32 PM
Thank you
@battk
. How can we receive a CSV file through RESTlet ?
b
battk
09/09/2021, 3:36 PM
depends on the
Content–Type Header
battk
09/09/2021, 3:37 PM
if json, you place the csv content in a key on the object
👍 1
battk
09/09/2021, 3:37 PM
if plain text, you place the csv content directly in the post body
s
SMNCP
09/09/2021, 3:43 PM
but, NS would support content type as either json /xml , if im not wrong. Can we also use plaintext ?
SMNCP
09/09/2021, 3:46 PM
oh my bad, I see text/plain is also supported in NS. Thank you so much
@battk
for your quick response.
Open in Slack
Previous
Next