Need to house some search data JSON in a field to ...
# suitescript
n
Need to house some search data JSON in a field to use for printing. But, it exceeds the 100,000 character limit of a long text field. What would be my other options for this?
b
are you sure you are working with a field creating using suitescript, the limit is usually bigger than 100000
n
Yeah I am using a suitelet and populating the default value of a long text field with my search results. The search results was 1400 rows.
b
what are you printing
you might have better luck actually making the suitelet return the file that you want to print
n
Sorry, misspoke. I need the JSON as I am exporting the results via CSV. I have a plugin that does that but it must receive JSON. So, I was storing the results in a hidden field
Well, its a custom page for searching and they would need to download the results and then do another search if need be. So still need to return the main suitelet everytime
b
make a button that opens a new window (or tab honestly). the suitelet in the url of the new window returns the file
n
Coo, I'll give that a try
e
If you're just exporting search results to CSV, there's
N/task.SearchTask
n
Thanks @erictgrubaugh