SS 2.0 file.create API restricts you to 10MB max. ...
# suitescript
n
SS 2.0 file.create API restricts you to 10MB max. We need a way to generate a CSV off a saved search that is bigger. Anyone has a workaround? The idea behind this is to backup Suitescript execution logs which are only retained for 30-60 days. Generating an autos scheduled email off the saved search always truncates the matches. Hence i was looking to generate the matches off a saved search in a script
e
N/task
n
n/task, let me look
@ehcanadian so i see some sample code online where i can use N/task to export a saved search into CSV. Do you know if there are any file size limits?
e
I don't recall seeing any mention of one
n
great, I will try testing this out
thanks for the clue
m
If you use File.appendLine the limit is 10MB per line
☝️ 2
e
@NSObsessed if you do not need to clean/parse/format the data from the saved search, then N/Task is the best solution, if not michole approach would do it.
p
If the 10MB max kicks in on save of the file you could also consider the N/compress library which can gzip the file prior to saving.
n
good to know