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
battk
10/23/2020, 3:02 AM
add an additional filter to limit the results to 1 sales order
battk
10/23/2020, 3:02 AM
internalid would be the most obvious choice
battk
10/23/2020, 3:15 AM
although to be honest, usually these kind of scheduled scripts are meant to run on multiple records
battk
10/23/2020, 3:15 AM
you do a search for all your sales orders and then send an email for each of them
battk
10/23/2020, 3:16 AM
or the somewhat more sane send 1 email containing all sales orders