How to validate report selections in Business Central

Recently I had to validate some filter selections on a report in Business Central and found out it was not so straight forward to do. What happened when using the trigger OnPreDataItem() or trigger OnPreReport() triggers was that I was able to validate the filter selections by user but the user experience was not optimal since the selection page closed when the validation error occured.

Source : D365 BC & Power Apps
Read more…

Dynamics 365 Business Central mini tips: How to open the environments selection page

With Business Central online, you can easily get a safe environment where you can test, train, or troubleshoot without disturbing your company’s work processes or business data. Such a non-production environment is called a sandbox. Isolated from production, a sandbox environment is the place to safely explore, learn, demo, develop, and test the service without the risk of affecting the data and settings of your production environment.

Source : Dynamics 365 Lab
Read more…

“Field Selection” codeunit – how I select and record the ID of a field in Business Central

Recently I have been working on a customization for a customer with the goal of changing the out-of-the-box Positive Pay export for a Bank Account record.

While preparing the mapping for the positive pay details, I noticed the way Microsoft wrote the picking up of a field ID. They created a new codeunit: “Field Selection”.

Source : Business Central Musings
Read more…