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.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Excel File Generation
I am trying to generate Excel files from script in order to work around the problem with NS search sending the results in XLS form as searchresults.xls. I have been able to generate the files (using an example on the support site) that use XML to build the file, but when opening the file, Excel throws error that it corrupted. The nlapiCreatefile needs encoding to create anything other than a textbase file. Any ideas on how to accomplish this?
0