# Transform into Excel and attach document to next task

**URL:** <https://forum.flowable.org/t/transform-into-excel-and-attach-document-to-next-task/8596>\
**Category:** Uncategorized\
**Created:** [November 3, 2021, 11:31am UTC](https://forum.flowable.org/t/transform-into-excel-and-attach-document-to-next-task/8596 "2021-11-03T11:31:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonnyTH](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@JonnyTH](https://forum.flowable.org/u/JonnyTH)\
**Post date:** [November 3, 2021, 11:31am UTC](https://forum.flowable.org/t/transform-into-excel-and-attach-document-to-next-task/8596/1 "2021-11-03T11:31:47Z")

</div>

Hello,

I was wondering if it is possible to set an SQL query as a process variable that performs the query on a specific Database and transforms the output into an Excel file. If this is possible (which i believe its is but correct me if I am wrong) is there a way to automatically attach this Excel file to the next task in Flowable (which would be the verification of the completeness of the Excel file)  
Thanks a lot in advance.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [November 10, 2021, 10:32am UTC](https://forum.flowable.org/t/transform-into-excel-and-attach-document-to-next-task/8596/2 "2021-11-10T10:32:20Z")

</div>

That’s technically possible, but:

- do take into account SQL injection and security when doing so (e.g. not letting users fill things in)
- Flowable doesn’t have a task that transforms something into an Excel file, but you can use a solution such as e.g. Apache POI
