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.
Getting odd message in my csv export
I'm trying to write a script that will run a saved search and export the results as a csv file to the filing cabinet. Here is what I have so far
var results = nlapiSearchRecord('Customer','customsearch35962'); //Create CSV File var objFile = nlapiCreateFile('sales_data.csv','CSV', results); //Upload File to Cabinet objFile.setFolder(1789145); var id = nlapiSubmitFile(objFile); The File is being created in the Filing Cabinet, but when I open it the only thing written in the file is
[Lcom.netledger.app.common.scripting.search.nlobjSe archResult;@219a9d9e
Would somebody be able to explain what I am doing wrong?
0