Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Suitelet Response Headers - Download File
Hi,
I'm just trying to produce a downloadable file containing csv data using the following code in my suitelet....
response.setHeader("Content-Description","File Transfer"); response.setHeader("Content-type","application/octet-stream"); response.setHeader("Content-disposition","attachment; filename=to_warehouse.csv"); response.write(csvData); but i get the error...
Function: BuildUI Error: SSS_INVALID_HEADER One or more headers are not valid. Stack Trace: BuildUI(BuildUI:29)
Does anyone know what the problem is here? As this seems like such an obvious use case for this functionality.
Thanks,
0