
Using Application Language (AL) to speed up Bank Recs.
Reconciling the Microsoft Dynamics 365 Business Central General Ledger with bank statements can be a time- consuming and challenging process, especially for large real estate management companies with multiple bank accounts and business entities.
This article explores the key pain points encountered by one of our BC clients and shows how PDG solved their Bank Rec problems with a custom AL extension streamlining the bank reconciliation process in Microsoft Dynamics 365 Business Central.
The management company had 15 different Business Central companies, each having their own banks and varying bank statement formats. This made the process of downloading and importing the necessary CSV files a significant challenge. The bank statement files often included a mix of balance lines and detail lines, Credit and Debit columns instead of a single "Amount" column with Debits as negative, and other formats which had a single "Amount" column but used an additional "CR" or "DR" column to indicate the sign.
Using Visual Studio Code with Application Language (AL), we modified the Bank Statement Lines section of the Business Central Bank Reconciliation window to include a Document Number column, allowing the accountants for the management company to more accurately match the bank statement lines with the corresponding general ledger entries.
However, the bank statement CSV exports often included the Document Number in an "Additional Reference" column or a column with a different name, such as "Serial No." This required the team to adapt their reconciliation process to handle these varying column names.
By incorporating the Document Number into the reconciliation process, the team was able to significantly improve the accuracy and efficiency of the bank reconciliation, reducing the time and effort required to reconcile the accounts.
The team recognized the need to establish standardized procedures for users to download the bank statement CSV files from the various banks, ensuring a consistent and streamlined process across the organization.
By automating the file download and import process, the team could eliminate the manual steps and reduce the risk of errors or inconsistencies, further improving the efficiency of the bank reconciliation workflow.
Implementing a centralized data management system allowed the team to consolidate and manage the bank statement files, making it easier to track and maintain the reconciliation process across the company's multiple entities and bank accounts.

To address these challenges, the team had to create a customized codeunit with Application Language (AL) that could override the default behavior of the bank reconciliation process and adapt to the unique requirements of each company and bank account.
By developing a standardized and automated reconciliation workflow, the team was able to ensure that the process was consistent across the organization, reducing the risk of errors and improving the overall efficiency of the bank reconciliation.
The team leveraged the capabilities of Business Central to seamlessly integrate the bank statement data with the general ledger, enabling a more streamlined and accurate reconciliation process that eliminated the need for manual data entry and manipulation.
The automated reconciliation process also provided better reporting and visibility into the company's financial status, allowing the accounting team to identify and address any discrepancies or issues more quickly and effectively.
The Bank Statement Lines have been imported
This was the structure of the CSV file just imported into the Bank Rec

Here's the Visual Studio Code to create the Application Language (AL) Extension…

The Bank Statement Lines have been imported
This was the structure of the CSV file just imported into the Bank Rec
The team leveraged Visual Studio Code and Application Language (AL) to create a customized codeunit that could override the default behavior of the bank reconciliation process in Microsoft Dynamics 365 Business Central. This allowed them to adapt the reconciliation workflow to the unique requirements of each company and bank account, addressing the challenges posed by the diverse bank statement formats and structures.
Streamlining Bank Reconciliations in Microsoft Dynamics 365 Business Central