How to Dynamically Select a Report Design in Dynamics 365 Finance and Operations
Selecting a report design in Dynamics 365 Finance and Operations can be a challenge.
Typically, specifying a new report design is handled by replacing the default report name in Print Management.
Report controller classes will typically call this method directly, or via formLetterController.loadPrintSettings, to select the report design.
While this approach is typical, it's also limited, because it cannot choose a design based on the data inside the report. For example, a one-time customer might require a unique report.
In order to work around this issue, you can add a chain-of-command extension to the ouputReport method on the report's controller.
Want to Learn More?
I hope you find this workaround useful. Please contact us if you have any questions or need help troubleshooting any other challenges in your Dynamics 365 Finance and Operations environment.