save your file as variable and add to attachment a...
# suitescript
j
save your file as variable and add to attachment array. Don't know why documentation is off