Temporary records for GetSelectionFilter

Whenever you need to get a value1|value2|value4..value10|… field filter from a provided record variable, then the GetSelectionFilter method from the SelectionFilterManagement codeunit is your friend. However, using this function has one drawback, as you can read in the Remarks section:

Source : The BC Docs Librarian
Read more…

When partial records and indexes reach synergy

Continuing performance testing of queries on extended Business Central tables, today I want to look at the same dataset from a slightly different angle. If you read my previous post, you may remember the conclusion from the first test run: partial records are not a silver bullet to solve all performance problems in the application, but applying SetLoadFields on record variables can definitely help to protect the application from performance degradation in case when the application table is extended.

Source : Key to Good Code
Read more…

Who benefits from partial records: The true magic of SetLoadFields

One of the key characteristics of the C/AL language and its more modern ancestor, AL, that makes it so attractive for developers, is simplicity that makes the journey into the application development world much more comfortable even for people coming from a different background.

Source : Key to Good Code
Read more…

The Copy method on temporary records

If you ever needed to copy temporary record variables, you probably already stumbled across ToRecord.Copy(FromRecord, true), with the second parameter true being used. But be careful: it works differently than you might think!

Imagine two temporary record variables, both pointing to the same base table:

Source : The BC docs librarian
Read more…

Creating Power BI Reports for Displaying List Data in Dynamics 365 Business Central (Filter the Power BI report based on the selected record)

Dynamics 365 Business Central includes a Power BI FactBox control element on many key list pages. The purpose of this FactBox is to display Power BI reports that are related to records in the lists, providing extra insight into the data. The idea is that as you move between rows in the list, the report updates for the selected entry.

Source :Dynamics 365 Lab
Read more…