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.
Reading Suitelet CSV File upload
I have created a Suitelet to upload a CSV file (text format) and process it's content.
The problem I have found is that although the CSV is in plain text format, the file seems to get uploaded as a binary file in NetSuite.
Now for the strange thing, if I rename the same file to a .txt extension the file uploads as plain text and I can read the contents. It seems NetSuite determines the file format by extension. Using getType() it states that the .txt file is PLAINTEXT and the .csv file is EXCEL, even though as mentioned previously, it is the same file that has just been renamed.
0