This plugin allows users to extract data easily from strapi backend into .xlsx format
npm i strapi-plugin-excel-export-2024
or yarn add strapi-plugin-excel-export-2024
module.exports = {
config: {
"api::contact-form.contact-form": {
columns: [
"first_name",
"last_name",
"phone_no",
"business_email",
"job_title",
"company_name",
"company_website",
"city",
"message",
],
relation: {
solution: {
column: ["title"],
},
},
locale: "false",
},
},
};
The tables uid (api::contact-form.contact-form) need to be given following by its columns required
Relational fields need to be specified in the relation. For example consider the relation as solution and the column wanted from that relation is title.
Even if there is no relation needed please keep the relation field empty.
relation: {},
Note : Currently one level of relation is supported.
The locale field is for i18 translation plugin. If there is translation for the table you have to make it true.
You can't extract data from dynamic zone or nested components.