Having a fine-grained control over email sending has long been an unfulfilled desire of many users who have to deal with emailing of D365FO reports. Their wait is over! Docentric implemented a variety of features improving emailing in Dynamics 365 for Finance and Operations, which can be used also with Docentric Free Edition, a free […]
In the real world, you may experience timeouts when emailing invoices in batch due to sending limits of Online Exchange. Namely, sending message rate limit is 30 messages per minute, which can easily be exceeded when emailing takes place in batch. To overcome this problem we can increase the SMTP client timeout. Learn how To […]
Getting SMTP client timeout may cross your plans of having your invoices successfully emailed in batch, resulting in some unsent emails. Even worse, we can’t easily detect why and where the timeout occurred nor can we increase the default value of the SMTP client timeout without coding. Luckily, there are two ways of dealing with […]
The quickest way to locate those customers or vendors, which don’t have Primary email address set, is to personalize the Customers or Vendors forms by adding the Email address column from the related party, i.e. the corresponding field of the related record from the Global address book table. Usually we want to locate such customers […]
Let’s say that we want to email invoices to our customers from Dynamics 365 for Finance and Operations with some useful information in the email body such as billing period and due date. Moreover, we want to have this information nicely designed, using the styles of our company. Of course, we also want to have […]
If you need to send out a single email to every customer each month, and this email needs to have all the customer-belonging invoices for the current billing period attached, check out this article that will describe such a solution for Dynamics 365 for Finance and Operations. You can also download and use the described […]
If we’ve created multiple sales orders for the same customer during one month, he may want to receive a single invoice for all these sales orders at the end of the month (i.e. billing period). Or, he may want to receive a separate invoice for each of his sales orders at the end of the […]
You can use Docentric File print destination to output reports to Attachments of the underlying entity, i.e. the context record of the executing report. Unlike the built-in File print destination, when using Docentric you can output reports in batch, e.g. save them to Azure storage, SharePoint or Attachments. What if saving to Attachments fails If […]
Some print management report destinations are not valid for batch processing warning occurs when posting and printing sales invoices in batch. In this article we will investigate this warning but let’s first examine how posting and printing an invoice in batch differs when Print Management setup for Customer invoice is, or is not used. Post […]
You can print an existing Sales invoice to a printer through the following code, no matter how the Print Management setup of Sales Invoice might look like:
public static void printSalesInvoiceToPrinter()
Args args = new Args();
select firstOnly custInvoiceJour where custInvoiceJour.SalesId != '';
salesInvoiceController = new SalesInvoiceController();
// Set the SalesInvoice.Report as SSRS Report Design.
// Set the report data contract with parameters.
salesInvoiceContract = salesInvoiceController.parmReportContract().parmRdpContract();
// Create print destination settings.
srsPrintDestSettings = new SRSPrintDestinationSettings();
// Set the selected print destination to Docentric Printer print destination.
printerPrintDestSettings = DocPrintDestSettingsPrinter::constructWithDefaultPrinter();
// Set print destination settings.
// Initalize SalesInvoiceJournalPrint class instance because there is no other way
// NOT to use the Print Management setup.
salesInvoiceJournalPrint = SalesInvoiceJournalPrint::construct();