Report Name dynamic change -attachment file Thru print management – Ax2012 – Dynamics 365 for Finance and operations

Scenario: Sometime a requirement to change the report name in the email thru print management need to change dynamically.


Class name where changes need to be done.

Report name update in the email

Class.Method: SRSReportRunPrinter.ToEmail()

check the report name in this method and update the file name as per requirement.


Report name update in the PDF and screen viewer

Class.Method: PrintMgmtReportRun.Execute()

  • check the report name
  • check the conditions for file and screen viewer
  • update the file name for file condition
  • update the file name and caption for the report


For Dynamics 365 for finance and operations use the post events of both methods




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.