send e-mail through code with attachments in AX
2. If you want to configure an email template. That can also be done from the basic module.
Subscribe to be the first to learn about a new blog post. Sign up today!
2. If you want to configure an email template. That can also be done from the basic module.
Hi All, If you would like to get the previous page’s selected record (Context) in EP in AX 2009 then you can use the following method in visual studio for it. AxTableContext context = AxBaseWebPart.GetWebpart(this).ExternalContext; if (context != null && context.TableId == TableMetadata.TableNum(AxBaseWebPart.GetWebpart(this).Session, “MainTable”)) { string TestField = context.DataKey.GetRecord(this.AxSession).GetField(“TestField”).ToString(); …
Hi Folks, The below code snippet would help you to get an active workflow configuration in Ax 2009 for a workflow template. WorkflowConfigurationTable workflowConfigurationTable; ; select firstonly workflowConfigurationTable where workflowConfigurationTable.TemplateName == && workflowConfigurationTable.Enabled == NoYes::Yes && workflowConfigurationTable.Type == WorkflowConfigurationType::Definition && workflowConfigurationTable.DefaultConfiguration == NoYes::Yes; Happy DAXing…………
I have observed that lot of developers face difficulty in printing the Sales Invoice report into file system through code. Here is the code snippet for it. SalesFormLetter salesFormLetter; PrintJobSettings printJobSettings; CustInvoiceJour custInvoiceJour; SalesId salesId; #File salesid = “SO-100010”; salesFormLetter = SalesFormLetter::construct(DocumentStatus::Invoice,false); printJobSettings = new PrintJobSettings(); printJobSettings.setTarget(PrintMedium::File); printJobSettings.format(PrintFormat); printJobSettings.fileName( ‘//10.0.57.22/AOSPrintShare//’ + salesId+#pdf ); printJobSettings.warnIfFileExists(false); SalesFormLetter.updatePrinterSettingsFormLetter(printJobSettings.packPrintJobSettings());…
Hi, In this post, I would like to explain you my experiences on the data upgrade from AX 3.0 and AX 4.0 to AX 2009. Please post your comments if you have any doubts on this…….. Data Upgrade from AX 3.0 to AX 2009 Perform the Consistency Check for all the required modules in AX…
Hi Folks, Once I have compiled the complete AX 2009 environment on the Server where AOS is installed and found that there was a compilation issue in the Class declaration of SysReportLibraryExport class but it seems to be fine with other environments. I couldn’t get any clue why this happened suddenly and atlast I tried opening AX client of this…
The simplest way to store an image for a record into AX tables is by using the CompanyImage Menu Item. I will explain you with an example below: Generally, most of the customers would request for a functionality to store an image for an item. For this, there is no need of high customization. Initially,…
Hi,
your blogs are really interesting.
One thing i would like to know that how can i check in AX whther outlook is installed on a machine or not, if yes then wether it is configured for sending mails or not. please let me know any code regarding that.
Hi,
your blogs are really interesting.
One thing i would like to know that how can i check in AX whther outlook is installed on a machine or not, if yes then wether it is configured for sending mails or not. please let me know any code regarding that.
Thanks,
Yasir