hi, does anyone know how to generate a CSV file fo...
# suitescript
c
hi, does anyone know how to generate a CSV file for a single sales order then send an email with it as attachment via script? I tried doing this via scheduled script (SS 1.0) but the problem is that the CSV file contained multiple sales orders.
b
add an additional filter to limit the results to 1 sales order
internalid would be the most obvious choice
although to be honest, usually these kind of scheduled scripts are meant to run on multiple records
you do a search for all your sales orders and then send an email for each of them
or the somewhat more sane send 1 email containing all sales orders