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!
Creating CSV file from Search Results
I'm trying to create a SS2 script that executes a saved search and then parses the results into a CSV file to FTP to another system.
My search has several FormulaText and FormulaCurrency fields in it. When I try to parse the Search.results object all the formulatext fields have the same names so I can't access each unique column.
Two questions:
1. How do you differentiate different formula fields (result.getValue('formulatext') in the search result?
2. Does anyone have any suggestions on how to export search results? Ideally, there would be an existing function in the Search module to do this (like in the UI).
0