Another thought, when using context.write do you n...
# suitescript
j
Another thought, when using context.write do you not have to use an object
context.write({key: data.id, value: costdata});