Page 1 of 1

Generate an excel file via trigger

Posted: Thu Sep 12, 2019 12:46 am
by nobita123
Hello All,

Is it possible to generate an excel file via trigger and attach it to the Input document?

Thanks

Re: Generate an excel file via trigger

Posted: Thu Sep 12, 2019 3:39 pm
by amosbatto
To generate an Excel file, you can use PhpSpreadsheet.
Maybe this example will help you understand how to use it (although this example is to read an Excel file, not generate it):
https://wiki.processmaker.com/3.1/Grid_ ... preadsheet

However, it is much easier to generate a comma separated value (CSV) file. Here is an example:
https://www.pmusers.com/index.php/Impor ... t_of_grids