Skip to main content

Posts

Showing posts from October, 2019

D365 Print Management Setup to print reports

In Microsoft Dynamics Ax D365, we have the out of the box feature of print management to print report either OOTB or custom reports of our clients so for that we need to configure the print management settings. We normally faces this warning message when we print the reports without the setting has been done. Firstly , select Form setup ( Accounts Receivable >> Forms >> Form setup  ) Secondly, In the General tab , select Print Management Thirdly, In the Document Tab right click and select New tab Moreover , we need to set the listed below details and need to select our required reports to load using print management Furthermore , we now nee to go to All Free Tax Invoices in AR Lastly you can use the FTI to generate the respective report using the print button. This time the Warning will be Gone!!! 

Sending Email with Excel File Attached in Dynamics D365 and AX2012 Using X++ without Framework

Sending Email is one of the most common features used in  Dynamics AX .Though,There are many  advancement when we move forward from AX2012 to D365FO .Similar is the case here we could use Predefined Framework as i have done in one of my blog( https://shayanarshi.blogspot.com/2019/10/sending-email-with-attached-excel-file.html ) but there are some cases where we use just a job to send email.Below is the working code to send email in Dynamics AX Requirements:  *Our objective it to Generate an excel File and attach it to an email and sending it to multiple recipients *The file data will be from financial dimension view and it will be distributed into three worksheets that is D1,D2 and D4_5 according to conditions *Data of Data Entity of D4 & D5 will be inserted into same worksheet that is D4_5 using System.IO; using OfficeOpenXml; using OfficeOpenXml.Style; using OfficeOpenXml.Table; class Irc_ExportDataExcelClass extends SysOperationServiceController {          publi

Sending Email with attached Excel file in D365 FO and Ax 2012 using SysMailerMessageBuilder Framework X++

Moving on from Ax dynamics 2012 to D365 , there are multiple frameworks that has been added on by Microsoft to use its basic functionality.In the case of email sending functionality in Dynamics Ax we probably prefer SMTP in 2012 that is to add on the code and bypassing its required parameter.While in D365 we could use SysMailerMessageBuilder framework to perform our work that is sending email to multiple recipient too. The piece of code firstly has been attached  is using SysMailerMessageBuilder framework Requirements:  *Our objective it to Generate an excel File and attach it to an email and sending it to multiple recipients *The file data will be from financial dimension view and it will be distributed into three worksheets that is D1,D2 and D4_5 according to conditions *Data of Data Entity of D4 & D5 will be inserted into same worksheet that is D4_5 public class IRC_FinancialDimExportService extends SysOperationServiceBase {     public const str T1 = 'T1-D1&#