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!
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
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