Entradas

Mostrando entradas de marzo, 2024

How to Print Multiple Copies in Report in AL of Microsoft Dynamics 365 Business Central

Imagen
  How to Print Multiple Copies in Report in AL of Microsoft Dynamics 365 Business Central (MSDYN365BC)? There are two parts in report AL Code RDL Layout (Similar to NAV). AL Code I have pasted the AL code for the Item List report. report 50129 ItemListReport {     UsageCategory = ReportsAndAnalysis;     ApplicationArea = All;     CaptionML = ENU = 'AL Item List ';     DefaultLayout = RDLC;     RDLCLayout = './ItemListReport.rdl';     dataset     {         dataitem(Item; Item)         {              dataitem(CopyLoop; "Integer")             {  ...

How to send emails with attachments in Business Cental AL

Imagen
Many times we find ourselves with the need to send a document from Business Central with attached files, from Sales Orders, Purchases or some other document. Below I will share a solution which works for the aforementioned. The following example is based on generating a Sales Confirmation and sending an email with two attachments. The first thing we will do is attach two files from the Sales Order. Then, from the new action created "Send Confirmation With Attachments", we press to send the email with the two attachments. When you execute the action, an email will arrive with the sales confirmation and the two attached data. From the AL code, we can customize the email sending with images or a more appropriate email body for the company. Below I link the source code. https://github.com/juancamilo0519/SendAttachWithBusinessCentral //How to Do in Business Central By Juan Camilo Camargo A. pageextension 50101 SalesOrderExt extends "Sales Order" {     actions     { ...