Client wants to Download CSV file on Click of Button
I have created one button using Workflow , and a workflow action script is written to fetch and create a csv file to download . Everything is working fine except
Context.response. writeFile();
It is throwing me error: Cannot read writeFile undefined at line xxxx.
Is there anyway to download file , I dont want to use Suitelet.
Or is it possible to export csv to system using any other methods in workflow action Script.
Note:Do not want to save file in file Cabinet.
Any suggestions will be great help.
Thanks in advance.
Hi,
As per the docs…
https://suiteanswers.custhelp.com/app/answers/detail/a_id/49267
…a Workflow Action Script’s context does not contain “response” so you can’t use it in this way.
Is there a reason you don’t want to use a Suitelet? Since I’d imagine the code would be almost identical.
Thanks,
Chris
Thanks Chris, I used backend Suitelet itself.