AL code samples

Business Central OAuth 2.0 Get Token from AL Codeunit – massive apps update

Business Central OAuth2.0 Authentication – Access granted by Token OAuth2 authentication method, this type of connection can be used to connect to Business Central Admin APIs; the system to access the exposed APIs services uses a token issued by the access procedure, it is possible to use different ways to get the token released. How to retrieve tokens… In […]

How to set Workdate to Today in Cronus Demo Environments

How to set Workdate to Today in Cronus Demo Environments In demo environments (Cronus) not licensed Demo Company the workdate is set automatically by reading from the recorded ledger entries. This can be annoying if I want to use these environments for testing \ models or prototypes. Even in a non-activated PRODUCTION environments, it is […]

Business Central – Import Item Attributes from .CSV File

Business Central – Import Item Attributes from .CSV File In this short post I point out a utility to import item attributes from a .csv file after modifying them in Excel. The system uses a page and an XMLport to import the .CSV file, it could be convenient to use it given the non-linear structure […]

Custom images in Business Central List Pages

CUSTOM IMAGES IN BUSINESS CENTRAL LIST PAGES The ideal would be a mediaset field, unfortunately, the display from the web client in the lists is not perfect, you need to use brickview to view; in this case, we can still use the old technology based on blob fields (deprecated). “Hi, do you know if there […]

Business Central Cloud renaming a PDF report using FileManagement.BLOBExport

Business Central Cloud renaming a PDF report using FileManagement.BLOBExport On the Business Central Cloud, to save a report in PDF format and change its name while saving, you can use a STREAM BLOB through the “Temp blob” codeunit. Once this is done, use the function then the BLOBExport function present in the “File Management” codeunit […]

Add Bookmarks via AL Code

Add Bookmarks via AL Code Using the bookmark icon , you can add an action that opens a page or report from the navigation menu of your Role Center. The bookmark icon is shown in the top right corner of a page and also in the Tell Me window where you can efficiently bookmark multiple pages or […]

BUSINESS CENTRAL CONTROL ADD-INS

BUSINESS CENTRAL CONTROL ADD-INS Control add-in A “control add-in” is a custom control for displaying and modifying data within an iframe or a page. For example, a control add-in can display the content of a webpage, visualize data as a chart or on a map, or host a custom web application. Control add-in can respond […]

Substituting Reports

It is possible to substitute reports from the base application with “custom reports“. Great! This can be done by subscribing to the “OnAfterSubstituteReport” event published by  “Codeunit 44 – ReportManagement“. The following code illustrates “how to subscribe” a method to the “OnAfterSubstituteReport” event. This method replaces the report specified by the ReportId with the one given by the NewReportId parameter. In this example […]

Page Extension Vs Page Customization in Business Central

Page Extension Vs Page Customization in Business Central I want to point out the differences between the Page Extension and Page Customization Objects, sometimes the Customization Object, although more limited in functionality, may be sufficient for some customizations. #1 – Page Customization Object The page customization object in Dynamics 365 Business Central allows you to […]

Development Coding Rules and Naming Conventions for Microsoft AL

Development Coding Rules and Naming Conventions for Microsoft AL Hi guys, in this short post i want to talk about “Development Coding Rules and Naming Conventions for Microsoft AL Language Extension”; previously i already dealt with this topic in relation to C/AL, now I try to do it for Microsoft AL. For the development on […]

Scroll to top
%d bloggers like this: