Hello, is it possible to get each of the results a...
# suitescript
p
Hello, is it possible to get each of the results and the column values returned by a saved search with a scheduled script? Then create a transaction record where the lines would be line for each record returned by the saved search.
w
Yes. create a transaction, run the search and loop over search result and add lines, save transaction.
p
Watz. Whats the correct code to get the field values from the saved search?
and thank you
its a grouped search and I need to get the proper column names
w
Read up on performing searches in the help. searchResult.getValue()
p
I have one more question. whats the best function to use to add a line each time it loops through each results of the search?