Development of Trial Balance Report in BC D365:
(1) In this blog, we will see how to develop a new Trial Balance Report in excel format.
(2) First of all Take DataItem: “G/L Account”.
![Development of Trial Balance Report in BC D365 1 Take DataItem GL Account in business central](https://erpconsultors.com/wp-content/uploads/2022/01/Take-DataItem-GL-Account-in-business-central.png)
(3) Write code in “OnAfterGetRecord” for calculating Opening, Debit, Credit and Running Balance.
![Development of Trial Balance Report in BC D365 2 OnAfterGetRecord for trail balance report in bc d365](https://erpconsultors.com/wp-content/uploads/2022/01/OnAfterGetRecord-for-trail-balance-report-in-bc-d365.png)
![Development of Trial Balance Report in BC D365 3 OnAfterGetRecord code 2](https://erpconsultors.com/wp-content/uploads/2022/01/OnAfterGetRecord-code-2.png)
![Development of Trial Balance Report in BC D365 4 OnAfterGetRecord code 3](https://erpconsultors.com/wp-content/uploads/2022/01/OnAfterGetRecord-code-3.png)
![Development of Trial Balance Report in BC D365 5 OnAfterGetRecord code 4](https://erpconsultors.com/wp-content/uploads/2022/01/OnAfterGetRecord-code-4.png)
![Development of Trial Balance Report in BC D365 6 OnAfterGetRecord code 5](https://erpconsultors.com/wp-content/uploads/2022/01/OnAfterGetRecord-code-5.png)
![Development of Trial Balance Report in BC D365 7 OnAfterGetRecord code 6](https://erpconsultors.com/wp-content/uploads/2022/01/OnAfterGetRecord-code-6.png)
Header Part:
![Development of Trial Balance Report in BC D365 8 OnAfterGetRecord header part for trial balance report](https://erpconsultors.com/wp-content/uploads/2022/01/OnAfterGetRecord-header-part-for-trial-balance-report.png)
Body Part:
![Development of Trial Balance Report in BC D365 9 OnAfterGetRecord body party for trial balance report](https://erpconsultors.com/wp-content/uploads/2022/01/OnAfterGetRecord-body-party-for-trial-balance-report.png)
Footer Part:
![Development of Trial Balance Report in BC D365 10 OnAfterGetRecord footer part for trial balance report](https://erpconsultors.com/wp-content/uploads/2022/01/OnAfterGetRecord-footer-part-for-trial-balance-report.png)
Excel Sheet Creation Function:
![Development of Trial Balance Report in BC D365 11 excel create function in business central for trial balance report](https://erpconsultors.com/wp-content/uploads/2022/01/excel-create-function-in-business-central-for-trial-balance-report.png)
(4) After doing the above steps, publish the report and Go to the web client and run the report in excel format as shown.
![Development of Trial Balance Report in BC D365 12 Go to the web client and search trial balance custom](https://erpconsultors.com/wp-content/uploads/2022/01/Go-to-the-web-client-and-search-trial-balance-custom.png)
(5) Select the report from the drop-down list and apply the Date filter as per the requirement and press the “OK” button as shown.
![Development of Trial Balance Report in BC D365 13 select the trial balance custom and apply date filter](https://erpconsultors.com/wp-content/uploads/2022/01/select-the-trial-balance-custom-and-apply-date-filter.png)
(6) Excel Worksheet in the process as shown.
![Development of Trial Balance Report in BC D365 14 excel worksheet in process in business central for trial balance report](https://erpconsultors.com/wp-content/uploads/2022/01/excel-worksheet-in-process-in-business-central-for-trial-balance-report.png)
(7) After that excel was generated in the below format, as shown.
![Development of Trial Balance Report in BC D365 15 trail balance report develop in excel format from business central](https://erpconsultors.com/wp-content/uploads/2022/01/trail-balance-report-develop-in-excel-format-from-business-central.png)