Posts

Showing posts from April, 2024

Save and send SSRS report as attachment through email using X++ code in Ax2012

Image
 Hello Techies,     Welcome to code trekking journey with me!     I had a requirement where they wanted a functionality which will automate emailing the salary slip report to all the selected employees on a click of button. Here's the roadmap to implement the same. Step 1 : Firstly created a form with required payroll data of all the employees.     To allow them to send particular month's salary slip to employees, I have give two lookup fields for         selecting Year and Month and On clicking OK button the data on form will get filtered based on the        selected value from the lookup.           After filtering the data and selecting the employees, on click of 'Send Email' button the salary slip report will be downloaded to a given file path and same will be sent as an attachment to all the selected employees. Step 2: Override the clicked() method of 'Send Email' button and...