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 Folks, Today, I have observed a very strange thing in AX. I had to do a bulk insert from some other table where I also need to copy the tableId from the other table. I have found a strange issue i.e.,everything was getting copied except the tableId. You can try this in a job….
If you want to get all the error messages in the infolog in a desired language then just put this small code snippet and run it in a job. infolog.language(LanguageId); then whole UI of AX Client will be changed to the desired language and we will get the error messages into the infolog in that…
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());…
I have come across many people having a problem in printing the AX reports into the file system of server using batch job scheduling………… The main problem is in configuration……… The solution is pretty simple and is as follows: As AX batch job scheduling always runs on the server, the below configuration has to be…
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(); …
Today, I have a found a new function in QueryRun class and thought of sharing it here in this post. Its use can be found while integrating AX with some external applications. I am sure that everyone has used queryrun class in x++ code. I have found out a special function in QueryRun Class with…
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