Magento 2 store owners might be familiar with the backend grids and how they can be exported to CSV files. The store admins are frequently required to export the data into CSV format for multiple purposes.
There can be custom columns in the backend grid that the admin may also want to include in the exported CSV file. However, sometimes you may face problem to include the custom column in export to the CSV file in Magento 2, which may put the store admin in a troubling situation.
Suppose you are a Magento 2 store owner selling food items and have added a custom product attribute for flavours, then you may face difficulties while exporting products grid along with the newly created product attribute.
The solution to deal with such an issue is to tweak the source codes. You can learn the complete solution at https://meetanshi.com/blog/include-custom-column-in-export-to-csv-in-magento-2/