I’m a newbie to strapi and nodejs and i’m using strapi version 4, trying to find a way i can be exporting some data from content-types to excel. tried the excel-export plugin and it didn’t show on the UI until i edited the config/plugins.js
It’s possible this plugin is not ported to Strapi v4, in which case it won’t work for you. Here’s an idea for how to implement this, though. I assume you just need to output some data in CSV format, rather than actual XLS.
Implement a custom route and controller for exporting data. This can be a general route or it can live under a specific content-type if you’re just trying to export that specific content-type (e.g either /api/export or /api/restaurants/export).
In the controller, get your data. This can be done in a number of ways, either calling the find controller/service or using the entityService.
Once you have the data, simply set it in your ctx.body in CSV format.