Hi there!
I am trying to write an automation for a customer who needs to automate the export of a financial report out of D365 Finance which is currently a manual process. I have written a code (originally shared by Sukrut Parab) to export the financial report and shared in this blog:
https://dynamicsaxinsight.wordpress.com/2020/04/30/generate-financial-report-in-xpp/
However, the code only exports a summary report with just single Excel tab.

On the other hand, when we manually export the report, in the export options dialog if we select all the available levels then the exported report contains much more detail having multiple excel tabs.


Is there a way to export this detailed financial report through code? Is there a way to define these export options while exporting the financial report through code?