I want to add some custom field like sku to add in order grid to export along with the order.
I follow this link Add custom product attribute to Order Grid to do this, but this didn't work in this Magento version.
How to achieve this?
The issue is with the code compilation and cache. Run command
php bin/magento setup:di:compile
php bin/magento cache:flush
and now my custom columns are showing in order grid and also export with other order data.