One trick I’ve learned <@U9U62UJMD> is to save my ...
# suitescript
m
One trick I’ve learned @fkrauthan is to save my data to the session with
runtime.getCurrentSession().set()
as I render the page in the Suitelet. Then a function like this just sends a GET request back to the suitelet in the button handler on the client side. The Suitelet composes the file from the session data and does a context.writeFile()