Hello, everyone!
I’m developing my first plugin for Mautic (I’m now to Mautic and Symfony).
So far I managed to generate a custom report and display it. But now I want to export it to a CSV file and here I am stuck.
What is the best way to implement an export?
Hello @rarita.king,
In the “Reports” section you can create your report, then you can export the results in CSV (via the button at the top right in the report details).
Does this help you?
Pierre
That I know, but I created a plugin that gets me custom data from the database and I want to export this data to a CSV file.
@rarita.king you can create a file and write this file on server with .csv extension.