Dynamics 365 Business Central: How to specify the report layout before printing via AL (“Report Layout List 2000000234” not “Custom Report Layout 9650”)

Today I would like to talk about how to specify the report layout (“Report Layout List 2000000234”) before printing in AL. A few days ago, a partner asked me an interesting question, the customer wants to print different report layouts according to different conditions in the…

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…