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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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