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).
(I've attached a prototype I'm doing that works in the debugger. Note: Search ID and FileCabinet ID would need to be changed).
Any ideas/suggestion always appreciated.
Thanks,
Brian