We updated our Magento 2 from 2.3.3 to 2.4.5 and now our old custom module doesn’t work anymore.
We were doing a Left Join from sales order and we could add custom columns that were exportables.
Now I tried several solutions I found on here but it is not for magento 2.4.5 and I always have an issue. I tried to ask ChatGPT, it provided me a way to add the custom column but when we were doing a csv export, the columns returned empty data.
Does anyone know a simple way to do this ?