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.
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 folks……… If you would like to link two Enterprise Portal web pages in AX 2009 having different/same datasets then it is very simple. You have to create the two web controls using the two different/same datasets. Add it to the two different web pages and link the second web page using the url menuitem….
Recently, For one of our customers we have developed an SSRS report and published it on Enterprise portal using Internet Explorer 8. When trying to print the report we were getting an error message box “An error occurred during this operation” When I tried to google it, I found a support link from Microsoft. The workaround…
Hi Folks, In this post, I am going to explain you on how to read a CSV file in AX 2009. 1. First of all, make sure that the file is accessible and has sufficient permissions to read the file. 2. Now follow the below code which reads the file, reads all the lines in…
Here is a code snippet to convert any file into a base64 string in x++ using some dot net inbuilt classes in AX. To convert it, initially clrinterop permission must be granted to access the dot net inbuilt classes then load the file into file info, initialize the byte array with the length of file,…
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,
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